Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] [Events] Use event classes for System plugins #43637

Open
wants to merge 19 commits into
base: 5.3-dev
Choose a base branch
from
Next Next commit
system Accessibility
  • Loading branch information
Fedik committed Jun 8, 2024
commit 0cdc93a53b810a51a7b56553d78ade4fa4df14c1
17 changes: 16 additions & 1 deletion plugins/system/accessibility/src/Extension/Accessibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Joomla\Plugin\System\Accessibility\Extension;

use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\Event\SubscriberInterface;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand All @@ -21,8 +22,22 @@
*
* @since 4.0.0
*/
final class Accessibility extends CMSPlugin
final class Accessibility extends CMSPlugin implements SubscriberInterface
{
/**
* Returns an array of events this subscriber will listen to.
*
* @return array
*
* @since __DEPLOY_VERSION__
*/
public static function getSubscribedEvents(): array
{
return [
'onBeforeCompileHead' => 'onBeforeCompileHead',
];
}

/**
* Add the javascript for the accessibility menu
*
Expand Down