class AfterEntityPull in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Event/AfterEntityPull.php \Drupal\cms_content_sync\Event\AfterEntityPull
- 2.0.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\EventView 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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| AfterEntityPull:: | public | property | Entity. | |
| AfterEntityPull:: | public | property | ||
| AfterEntityPull:: | public | constant | ||
| AfterEntityPull:: | public | function | Get the pushed entity. | |
| AfterEntityPull:: | public | function | ||
| AfterEntityPull:: | public | function | Constructs a entity pull event. | 
