TypeProcessorInterface.php in Content Synchronizer 8
Same filename and directory in other branches
File
src/Processors/Type/TypeProcessorInterface.phpView source
<?php
namespace Drupal\content_synchronizer\Processors\Type;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\Core\Entity\Entity;
use Drupal\Core\TypedData\TypedData;
/**
* The type processor interface.
*/
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\Entity $entityToImport
* The entity to import.
* @param string $propertyId
* THe property id.
* @param array $data
* The data to import.
*/
public function initImportedEntity(Entity $entityToImport, $propertyId, array $data);
}
Interfaces
Name | Description |
---|---|
TypeProcessorInterface | The type processor interface. |