File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1515use Joomla \CMS \Extension \BootableExtensionInterface ;
1616use Joomla \CMS \Extension \MVCComponent ;
1717use Joomla \CMS \HTML \HTMLRegistryAwareTrait ;
18+ use Joomla \CMS \Opengraph \OpengraphServiceInterface ;
1819use Joomla \Component \Menus \Administrator \Service \HTML \Menus ;
1920use Psr \Container \ContainerInterface ;
2021
2930 */
3031class 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}
You can’t perform that action at this time.
0 commit comments