You are here

class ImportEvent in Content Synchronizer 8

Same name and namespace in other branches
  1. 8.2 src/Events/ImportEvent.php \Drupal\content_synchronizer\Events\ImportEvent
  2. 3.x 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\Events
View source
class ImportEvent extends Event {
  const ON_ENTITY_IMPORTER = 'content_synchronizer.on_entity_importer';

  /**
   * The imported entity.
   *
   * @var \Drupal\Core\Entity\Entity
   */
  protected $entity;

  /**
   * The entity gid.
   *
   * @var string
   */
  protected $gid;

  /**
   * Return the entity.
   *
   * @return \Drupal\Core\Entity\Entity
   *   THe entity.
   */
  public function getEntity() {
    return $this->entity;
  }

  /**
   * Set the entity.
   *
   * @param \Drupal\Core\Entity\Entity $entity
   *   THe entity.
   */
  public function setEntity(Entity $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

Namesort descending Modifiers Type Description Overrides
ImportEvent::$entity protected property The imported entity.
ImportEvent::$gid protected property The entity gid.
ImportEvent::getEntity public function Return the entity.
ImportEvent::getGid public function Return the entity gid.
ImportEvent::ON_ENTITY_IMPORTER constant
ImportEvent::setEntity public function Set the entity.
ImportEvent::setGid public function Set the gid.