You are here

class BeforeEntityPull in CMS Content Sync 8

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

An entity is being pulled. Modules can use this to append additional field values or process other information for different use cases.

Hierarchy

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

Expanded class hierarchy of BeforeEntityPull

2 files declare their use of BeforeEntityPull
EntityHandlerBase.php in src/Plugin/EntityHandlerBase.php
SimpleSitemapSyncExtend.php in modules/cms_content_sync_simple_sitemap/src/EventSubscriber/SimpleSitemapSyncExtend.php

File

src/Event/BeforeEntityPull.php, line 14

Namespace

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

  /**
   * 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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BeforeEntityPull::$entity public property Entity.
BeforeEntityPull::$intent public property
BeforeEntityPull::EVENT_NAME public constant
BeforeEntityPull::__construct public function Constructs a entity pull event.