class ImportEvent in Content Synchronizer 3.x
Same name and namespace in other branches
- 8.2 src/Events/ImportEvent.php \Drupal\content_synchronizer\Events\ImportEvent
- 8 src/Events/ImportEvent.php \Drupal\content_synchronizer\Events\ImportEvent
Import event.
Hierarchy
- class \Drupal\content_synchronizer\Events\ImportEvent extends \Symfony\Component\EventDispatcher\Event
Expanded class hierarchy of ImportEvent
3 files declare their use of ImportEvent
- EntityProcessorBase.php in src/
Processors/ Entity/ EntityProcessorBase.php - EntityReferenceFieldItemListProcessor.php in src/
Plugin/ content_synchronizer/ type_processor/ EntityReferenceFieldItemListProcessor.php - TaxonomyTermProcessor.php in src/
Plugin/ content_synchronizer/ entity_processor/ TaxonomyTermProcessor.php
File
- src/
Events/ ImportEvent.php, line 11
Namespace
Drupal\content_synchronizer\EventsView source
class ImportEvent extends Event {
const ON_ENTITY_IMPORTER = 'content_synchronizer.on_entity_importer';
/**
* The imported entity.
*
* @var \Drupal\Core\Entity\EntityInterface
*/
protected $entity;
/**
* The entity gid.
*
* @var string
*/
protected $gid;
/**
* Return the entity.
*
* @return \Drupal\Core\Entity\EntityInterface
* THe entity.
*/
public function getEntity() {
return $this->entity;
}
/**
* Set the entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* THe entity.
*/
public function setEntity(EntityInterface $entity) {
$this->entity = $entity;
}
/**
* Return the entity gid.
*
* @return string
* The gid.
*/
public function getGid() {
return $this->gid;
}
/**
* Set the gid.
*
* @param string $gid
* THe gid.
*/
public function setGid($gid) {
$this->gid = $gid;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ImportEvent:: |
protected | property | The imported entity. | |
ImportEvent:: |
protected | property | The entity gid. | |
ImportEvent:: |
public | function | Return the entity. | |
ImportEvent:: |
public | function | Return the entity gid. | |
ImportEvent:: |
constant | |||
ImportEvent:: |
public | function | Set the entity. | |
ImportEvent:: |
public | function | Set the gid. |