You are here

interface TypeProcessorInterface in Content Synchronizer 8.2

Same name and namespace in other branches
  1. 8 src/Processors/Type/TypeProcessorInterface.php \Drupal\content_synchronizer\Processors\Type\TypeProcessorInterface
  2. 3.x src/Processors/Type/TypeProcessorInterface.php \Drupal\content_synchronizer\Processors\Type\TypeProcessorInterface

The type processor interface.

Hierarchy

Expanded class hierarchy of TypeProcessorInterface

All classes that implement TypeProcessorInterface

File

src/Processors/Type/TypeProcessorInterface.php, line 12

Namespace

Drupal\content_synchronizer\Processors\Type
View source
interface TypeProcessorInterface extends PluginInspectionInterface {

  /**
   * Get the data to export.
   *
   * @param \Drupal\Core\TypedData\TypedData $propertyData
   *   The property data to export.
   *
   * @return array
   *   The field data to export.
   */
  public function getExportedData(TypedData $propertyData);

  /**
   * Init the $propertyId value in the entity to import.
   *
   * @param \Drupal\Core\Entity\EntityInterface $entityToImport
   *   The entity to import.
   * @param string $propertyId
   *   THe property id.
   * @param array $data
   *   The data to import.
   */
  public function initImportedEntity(EntityInterface $entityToImport, $propertyId, array $data);

}

Members

Namesort descending Modifiers Type Description Overrides
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
TypeProcessorInterface::getExportedData public function Get the data to export. 1
TypeProcessorInterface::initImportedEntity public function Init the $propertyId value in the entity to import. 1