You are here

protected function DefaultMenuLinkContentReferenceHandler::getFieldValuesForReference in CMS Content Sync 8

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

Get the values to be set to the $entity->field_*.

Parameters

$reference:

$intent:

Return value

array

Overrides EntityReferenceHandlerBase::getFieldValuesForReference

File

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

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

protected function getFieldValuesForReference($reference, $intent) {
  return 'menu_link_content:' . $reference
    ->uuid();
}