You are here

public static function DefaultMenuLinkContentReferenceHandler::supports in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Plugin/cms_content_sync/field_handler/DefaultMenuLinkContentReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultMenuLinkContentReferenceHandler::supports()
  2. 2.0.x src/Plugin/cms_content_sync/field_handler/DefaultMenuLinkContentReferenceHandler.php \Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler\DefaultMenuLinkContentReferenceHandler::supports()

Check if this handler supports the given field instance.

Parameters

string $entity_type:

string $bundle:

string $field_name:

Return value

bool

Overrides DefaultEntityReferenceHandler::supports

File

src/Plugin/cms_content_sync/field_handler/DefaultMenuLinkContentReferenceHandler.php, line 22

Class

DefaultMenuLinkContentReferenceHandler
Reference menu references and make sure they're published as the content comes available.

Namespace

Drupal\cms_content_sync\Plugin\cms_content_sync\field_handler

Code

public static function supports($entity_type, $bundle, $field_name, FieldDefinitionInterface $field) {
  return 'menu_link_content' == $entity_type && 'parent' == $field_name;
}