You are here

class AfterEntityPull in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/Event/AfterEntityPull.php \Drupal\cms_content_sync\Event\AfterEntityPull
  2. 2.1.x src/Event/AfterEntityPull.php \Drupal\cms_content_sync\Event\AfterEntityPull

The entity has been pulled successfully. Other modules can use this to react on successful pull events.

Hierarchy

  • class \Drupal\cms_content_sync\Event\AfterEntityPull extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of AfterEntityPull

2 files declare their use of AfterEntityPull
DraggableViewsSyncExtend.php in modules/cms_content_sync_draggableviews/src/EventSubscriber/DraggableViewsSyncExtend.php
PullIntent.php in src/PullIntent.php

File

src/Event/AfterEntityPull.php, line 13

Namespace

Drupal\cms_content_sync\Event
View source
class AfterEntityPull extends Event {
  public const EVENT_NAME = 'cms_content_sync.entity.pull.after';

  /**
   * Entity.
   *
   * @var \Drupal\Core\Entity\EntityInterface
   */
  public $entity;

  /**
   * @var \Drupal\cms_content_sync\PullIntent
   */
  public $intent;

  /**
   * Constructs a entity pull event.
   */
  public function __construct(EntityInterface $entity, PullIntent $intent) {
    $this->entity = $entity;
    $this->intent = $intent;
  }

  /**
   * @return \Drupal\cms_content_sync\PullIntent
   */
  public function getIntent() {
    return $this->intent;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
AfterEntityPull::$entity public property Entity.
AfterEntityPull::$intent public property
AfterEntityPull::EVENT_NAME public constant
AfterEntityPull::getEntity public function Get the pushed entity.
AfterEntityPull::getIntent public function
AfterEntityPull::__construct public function Constructs a entity pull event.