function _domain_menus_is_domain_menu in Domain Menus for Domains 3.x
Same name and namespace in other branches
- 9.x domain_menus.module \_domain_menus_is_domain_menu()
- 9.1.x domain_menus.module \_domain_menus_is_domain_menu()
Helper function to tell if a menu is a domain menu. If a menu has the domain_menus third party setting, it's considered a domain menu.
3 calls to _domain_menus_is_domain_menu()
- domain_menus_form_alter in ./
domain_menus.module - Implements hook_form_alter().
- domain_menus_form_menu_link_content_menu_link_content_form_alter in ./
domain_menus.module - Implements hook_form_FORM_ID_alter() for menu_link_content_menu_link_content_form.
- domain_menus_menu_link_content_create_access in ./
domain_menus.module - Implements hook_ENTITY_TYPE_create_access().
File
- ./
domain_menus.module, line 39 - Domain menus implementation through entity create, delete, and access customizations.
Code
function _domain_menus_is_domain_menu(EntityInterface $menu) {
$menu_domains = $menu
->getThirdPartySetting("domain_menus", "domains");
if ($menu_domains !== NULL) {
return TRUE;
}
return FALSE;
}