protected function DefaultMenuLinkContentHandler::shouldRestrictMenuUsage in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Plugin/cms_content_sync/entity_handler/DefaultMenuLinkContentHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMenuLinkContentHandler::shouldRestrictMenuUsage()
- 2.0.x src/Plugin/cms_content_sync/entity_handler/DefaultMenuLinkContentHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMenuLinkContentHandler::shouldRestrictMenuUsage()
2 calls to DefaultMenuLinkContentHandler::shouldRestrictMenuUsage()
- DefaultMenuLinkContentHandler::ignorePull in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultMenuLinkContentHandler.php - Check if the pull should be ignored.
- DefaultMenuLinkContentHandler::ignorePush in src/
Plugin/ cms_content_sync/ entity_handler/ DefaultMenuLinkContentHandler.php - Check if the entity should not be ignored from the push.
File
- src/
Plugin/ cms_content_sync/ entity_handler/ DefaultMenuLinkContentHandler.php, line 279
Class
- DefaultMenuLinkContentHandler
- Class DefaultMenuLinkContentHandler, providing a minimalistic implementation for menu items, making sure they're referenced correctly by UUID.
Namespace
Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handlerCode
protected function shouldRestrictMenuUsage() {
return !empty(array_diff(array_values($this->settings['handler_settings']['restrict_menus']), [
0,
]));
}