Skip to content

Commit fea4185

Browse files
committed
feat : implemented the OGInterface in com_menus
1 parent a6e28cd commit fea4185

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

administrator/components/com_menus/src/Extension/MenusComponent.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Joomla\CMS\Extension\BootableExtensionInterface;
1616
use Joomla\CMS\Extension\MVCComponent;
1717
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
18+
use Joomla\CMS\Opengraph\OpengraphServiceInterface;
1819
use Joomla\Component\Menus\Administrator\Service\HTML\Menus;
1920
use Psr\Container\ContainerInterface;
2021

@@ -29,7 +30,8 @@
2930
*/
3031
class MenusComponent extends MVCComponent implements
3132
BootableExtensionInterface,
32-
AssociationServiceInterface
33+
AssociationServiceInterface,
34+
OpengraphServiceInterface
3335
{
3436
use AssociationServiceTrait;
3537
use HTMLRegistryAwareTrait;
@@ -51,4 +53,20 @@ public function boot(ContainerInterface $container)
5153
{
5254
$this->getRegistry()->register('menus', new Menus());
5355
}
56+
57+
58+
/**
59+
* Returns valid contexts for opengraph
60+
*
61+
* @return array
62+
*
63+
* @since __DEPLOY_VERSION__
64+
*/
65+
public function getOpengraphFields(): array
66+
{
67+
68+
$fields = [];
69+
70+
return $fields;
71+
}
5472
}

0 commit comments

Comments
 (0)