You are here

protected function DefaultMenuLinkContentHandler::shouldRestrictMenuUsage in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/cms_content_sync/entity_handler/DefaultMenuLinkContentHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\entity_handler\DefaultMenuLinkContentHandler::shouldRestrictMenuUsage()
  2. 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_handler

Code

protected function shouldRestrictMenuUsage() {
  return !empty(array_diff(array_values($this->settings['handler_settings']['restrict_menus']), [
    0,
  ]));
}