You are here

public function FieldHandlerBase::definePropertyAtType in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 2.0.x src/Plugin/FieldHandlerBase.php \Drupal\cms_content_sync\Plugin\FieldHandlerBase::definePropertyAtType()

Provide the Sync Core with the right property definition so this field can be stored and synchronized.

Overrides FieldHandlerInterface::definePropertyAtType

1 method overrides FieldHandlerBase::definePropertyAtType()
DefaultEntityReferenceHandler::definePropertyAtType in src/Plugin/cms_content_sync/field_handler/DefaultEntityReferenceHandler.php
Provide the Sync Core with the right property definition so this field can be stored and synchronized.

File

src/Plugin/FieldHandlerBase.php, line 215

Class

FieldHandlerBase
Common base class for field handler plugins.

Namespace

Drupal\cms_content_sync\Plugin

Code

public function definePropertyAtType(IDefineEntityType $type_definition) {
  $type_definition
    ->addObjectProperty($this->fieldName, $this->fieldDefinition
    ->getLabel(), true, $this->fieldDefinition
    ->isRequired());
}