Skip to content

Commit 3391686

Browse files
authored
Merge branch '2.4-develop' into fix/issue-24735
2 parents 8f5f9a5 + f9a487d commit 3391686

File tree

3,226 files changed

+85369
-27885
lines changed

Some content is hidden

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

3,226 files changed

+85369
-27885
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 206 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/developer-experience-issue.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Developer experience issue
33
about: Issues related to customization, extensibility, modularity
4+
labels: 'Triage: Dev.Experience'
45

56
---
67

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
name: Feature request
33
about: Please consider reporting directly to https://github.com/magento/community-features
4+
labels: 'feature request'
45

56
---
67

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
Letting us know what has changed and why it needed changing will help us validate this pull request.
1616
-->
1717

18+
### Related Pull Requests
19+
<!-- related pull request placeholder -->
20+
1821
### Fixed Issues (if relevant)
1922
<!---
2023
If relevant, please provide a list of fixed issues in the format magento/magento2#<issue_number>.

app/code/Magento/AdminAnalytics/etc/adminhtml/system.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
99
<system>
1010
<section id="admin">
11-
<group id="usage" translate="label" type="text" sortOrder="2000" showInDefault="1" showInWebsite="0" showInStore="0">
11+
<group id="usage" translate="label" type="text" sortOrder="2000" showInDefault="1">
1212
<label>Admin Usage</label>
13-
<field id="enabled" translate="label comment" type="select" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
13+
<field id="enabled" translate="label comment" type="select" sortOrder="1" showInDefault="1">
1414
<label>Enable Admin Usage Tracking</label>
1515
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
1616
<comment>Allow Magento to track admin usage in order to improve the quality and user experience.</comment>

app/code/Magento/AdminAnalytics/registration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
use \Magento\Framework\Component\ComponentRegistrar;
7+
use Magento\Framework\Component\ComponentRegistrar;
88

99
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_AdminAnalytics', __DIR__);

app/code/Magento/AdminNotification/Block/Grid/Renderer/Actions.php

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
declare(strict_types=1);
3+
24
/**
35
* Adminhtml AdminNotification Severity Renderer
46
*
@@ -8,12 +10,16 @@
810

911
namespace Magento\AdminNotification\Block\Grid\Renderer;
1012

13+
use Magento\Backend\Block\Context;
14+
use Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer;
15+
use Magento\Framework\App\ActionInterface;
16+
use Magento\Framework\DataObject;
17+
use Magento\Framework\Url\Helper\Data;
18+
1119
/**
1220
* Renderer class for action in the admin notifications grid
13-
*
14-
* @package Magento\AdminNotification\Block\Grid\Renderer
1521
*/
16-
class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
22+
class Actions extends AbstractRenderer
1723
{
1824
/**
1925
* @var \Magento\Framework\Url\Helper\Data
@@ -25,11 +31,8 @@ class Actions extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Abstrac
2531
* @param \Magento\Framework\Url\Helper\Data $urlHelper
2632
* @param array $data
2733
*/
28-
public function __construct(
29-
\Magento\Backend\Block\Context $context,
30-
\Magento\Framework\Url\Helper\Data $urlHelper,
31-
array $data = []
32-
) {
34+
public function __construct(Context $context, Data $urlHelper, array $data = [])
35+
{
3336
$this->_urlHelper = $urlHelper;
3437
parent::__construct($context, $data);
3538
}
@@ -40,7 +43,7 @@ public function __construct(
4043
* @param \Magento\Framework\DataObject $row
4144
* @return string
4245
*/
43-
public function render(\Magento\Framework\DataObject $row)
46+
public function render(DataObject $row)
4447
{
4548
$readDetailsHtml = $row->getUrl() ? '<a class="action-details" target="_blank" href="' .
4649
$this->escapeUrl($row->getUrl())
@@ -49,7 +52,7 @@ public function render(\Magento\Framework\DataObject $row)
4952

5053
$markAsReadHtml = !$row->getIsRead() ? '<a class="action-mark" href="' . $this->getUrl(
5154
'*/*/markAsRead/',
52-
['_current' => true, 'id' => $row->getId()]
55+
['_current' => true, 'id' => $row->getNotificationId()]
5356
) . '">' . __(
5457
'Mark as Read'
5558
) . '</a>' : '';
@@ -63,8 +66,8 @@ public function render(\Magento\Framework\DataObject $row)
6366
'*/*/remove/',
6467
[
6568
'_current' => true,
66-
'id' => $row->getId(),
67-
\Magento\Framework\App\ActionInterface::PARAM_NAME_URL_ENCODED => $encodedUrl
69+
'id' => $row->getNotificationId(),
70+
ActionInterface::PARAM_NAME_URL_ENCODED => $encodedUrl
6871
]
6972
),
7073
__('Are you sure?'),

app/code/Magento/AdminNotification/Block/Grid/Renderer/Notice.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
declare(strict_types=1);
3+
24
/**
35
* Adminhtml AdminNotification Severity Renderer
46
*
@@ -7,15 +9,21 @@
79
*/
810
namespace Magento\AdminNotification\Block\Grid\Renderer;
911

10-
class Notice extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
12+
use Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer;
13+
use Magento\Framework\DataObject;
14+
15+
/**
16+
* Renderer class for notice in the admin notifications grid
17+
*/
18+
class Notice extends AbstractRenderer
1119
{
1220
/**
1321
* Renders grid column
1422
*
1523
* @param \Magento\Framework\DataObject $row
1624
* @return string
1725
*/
18-
public function render(\Magento\Framework\DataObject $row)
26+
public function render(DataObject $row)
1927
{
2028
return '<span class="grid-row-title">' .
2129
$this->escapeHtml($row->getTitle()) .

0 commit comments

Comments
 (0)