Skip to content

Commit b49131a

Browse files
committed
Merge branch '2.4-develop' of https://github.com/magento-arcticfoxes/magento2ce into B2B-2052
2 parents 3654955 + 013c82c commit b49131a

File tree

209 files changed

+22522
-18169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+22522
-18169
lines changed

app/code/Magento/AdminNotification/Model/InboxInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,20 @@ interface InboxInterface
1818
*
1919
* @param int|null $severity
2020
* @return array|string|null
21-
* @api
2221
*/
2322
public function getSeverities($severity = null);
2423

2524
/**
2625
* Retrieve Latest Notice
2726
*
2827
* @return $this
29-
* @api
3028
*/
3129
public function loadLatestNotice();
3230

3331
/**
3432
* Retrieve notice statuses
3533
*
3634
* @return array
37-
* @api
3835
*/
3936
public function getNoticeStatus();
4037
}

app/code/Magento/Authorization/Model/Role.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
/**
1313
* Admin Role Model
1414
*
15-
* @api
1615
* @method int getParentId()
1716
* @method Role setParentId(int $value)
1817
* @method int getTreeLevel()

app/code/Magento/Authorization/Model/UserContextInterface.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,23 @@ interface UserContextInterface
1717
/**#@+
1818
* User type
1919
*/
20-
const USER_TYPE_INTEGRATION = 1;
21-
const USER_TYPE_ADMIN = 2;
22-
const USER_TYPE_CUSTOMER = 3;
23-
const USER_TYPE_GUEST = 4;
20+
public const USER_TYPE_INTEGRATION = 1;
21+
public const USER_TYPE_ADMIN = 2;
22+
public const USER_TYPE_CUSTOMER = 3;
23+
public const USER_TYPE_GUEST = 4;
2424
/**#@-*/
2525

2626
/**
2727
* Identify current user ID.
2828
*
2929
* @return int|null
30-
* @api
3130
*/
3231
public function getUserId();
3332

3433
/**
3534
* Retrieve current user type.
3635
*
3736
* @return int|null
38-
* @api
3937
*/
4038
public function getUserType();
4139
}

app/code/Magento/Backend/App/ConfigInterface.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Default application path for backend area
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -21,7 +19,6 @@ interface ConfigInterface
2119
*
2220
* @param string $path
2321
* @return mixed
24-
* @api
2522
*/
2623
public function getValue($path);
2724

@@ -32,7 +29,6 @@ public function getValue($path);
3229
* @param string $path
3330
* @param mixed $value
3431
* @return void
35-
* @api
3632
*/
3733
public function setValue($path, $value);
3834

@@ -43,7 +39,6 @@ public function setValue($path, $value);
4339
*
4440
* @param string $path
4541
* @return bool
46-
* @api
4742
*/
4843
public function isSetFlag($path);
4944
}

app/code/Magento/Backend/App/DefaultPath.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
/**
3-
* Default application path for backend area
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
86
namespace Magento\Backend\App;
97

108
/**
9+
* Default application path for backend area
10+
*
1111
* @api
1212
* @since 100.0.2
1313
*/
@@ -24,7 +24,11 @@ class DefaultPath implements \Magento\Framework\App\DefaultPathInterface
2424
*/
2525
public function __construct(\Magento\Backend\App\ConfigInterface $config)
2626
{
27-
$pathParts = explode('/', $config->getValue('web/default/admin'));
27+
$pathConfigValue = $config->getValue('web/default/admin') ?? '';
28+
$pathParts = [];
29+
if ($pathConfigValue) {
30+
$pathParts = explode('/', $pathConfigValue);
31+
}
2832

2933
$this->_parts = [
3034
'area' => isset($pathParts[0]) ? $pathParts[0] : '',

app/code/Magento/Backend/Block/Store/Switcher.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Switcher extends \Magento\Backend\Block\Template
2020
/**
2121
* URL for store switcher hint
2222
*/
23-
const HINT_URL = 'https://docs.magento.com/user-guide/configuration/scope.html';
23+
public const HINT_URL = 'https://docs.magento.com/user-guide/configuration/scope.html';
2424

2525
/**
2626
* Name of website variable
@@ -68,22 +68,16 @@ class Switcher extends \Magento\Backend\Block\Template
6868
protected $_template = 'Magento_Backend::store/switcher.phtml';
6969

7070
/**
71-
* Website factory
72-
*
7371
* @var \Magento\Store\Model\WebsiteFactory
7472
*/
7573
protected $_websiteFactory;
7674

7775
/**
78-
* Store Group Factory
79-
*
8076
* @var \Magento\Store\Model\GroupFactory
8177
*/
8278
protected $_storeGroupFactory;
8379

8480
/**
85-
* Store Factory
86-
*
8781
* @var \Magento\Store\Model\StoreFactory
8882
*/
8983
protected $_storeFactory;
@@ -617,9 +611,9 @@ public function getHintHtml()
617611
$url = $this->getHintUrl();
618612
if ($url) {
619613
$html = '<div class="admin__field-tooltip tooltip"><a href="%s" onclick="this.target=\'_blank\'" title="%s"
620-
class="admin__field-tooltip-action action-help"><span>%s</span></a></span></div>';
621-
$title = $this->escapeHtmlAttr(__('What is this?'));
622-
$span= $this->escapeHtml(__('What is this?'));
614+
class="admin__field-tooltip-action action-help"><span>%s</span></a></div>';
615+
$title = $this->escapeHtmlAttr(__('What is this?'));
616+
$span = $this->escapeHtml(__('What is this?'));
623617
$html = sprintf($html, $this->escapeUrl($url), $title, $span);
624618
}
625619
return $html;

app/code/Magento/Backend/Block/System/Store/Store.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
*
1111
* @api
1212
* @author Magento Core Team <core@magentocommerce.com>
13-
* @api
1413
* @since 100.0.2
1514
*/
1615
class Store extends \Magento\Backend\Block\Widget\Grid\Container
@@ -21,6 +20,8 @@ class Store extends \Magento\Backend\Block\Widget\Grid\Container
2120
protected $_blockGroup = 'Magento_Backend';
2221

2322
/**
23+
* Class constructor
24+
*
2425
* @return void
2526
*/
2627
protected function _construct()

app/code/Magento/Backend/Block/Widget/Button.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*
1616
* @api
1717
* @author Magento Core Team <core@magentocommerce.com>
18-
* @api
1918
* @since 100.0.2
2019
*/
2120
class Button extends \Magento\Backend\Block\Widget

app/code/Magento/Backend/Block/Widget/Button/ContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/**
1010
* Interface \Magento\Backend\Block\Widget\Button\ContextInterface
1111
*
12+
* @api
1213
*/
1314
interface ContextInterface
1415
{
@@ -17,7 +18,6 @@ interface ContextInterface
1718
*
1819
* @param \Magento\Backend\Block\Widget\Button\Item $item
1920
* @return bool
20-
* @api
2121
*/
2222
public function canRender(\Magento\Backend\Block\Widget\Button\Item $item);
2323
}

app/code/Magento/Backend/Block/Widget/Button/SplitButton.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,12 @@ public function getToggleAttributesHtml()
164164
if ($disabled) {
165165
$classes[] = $disabled;
166166
}
167-
168-
$attributes = ['title' => $title, 'class' => join(' ', $classes), 'disabled' => $disabled];
167+
$attributes = [
168+
'title' => $title,
169+
'class' => join(' ', $classes),
170+
'disabled' => $disabled,
171+
'aria-label' => (string)$this->getData('dropdown_button_aria_label'),
172+
];
169173
$this->_getDataAttributes(['mage-init' => '{"dropdown": {}}', 'toggle' => 'dropdown'], $attributes);
170174

171175
$html = $this->_getAttributesString($attributes);

0 commit comments

Comments
 (0)