You are here

class CleanEvent in Feeds 8.3

Fired to begin cleaning.

Hierarchy

  • class \Drupal\feeds\Event\EventBase extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of CleanEvent

3 files declare their use of CleanEvent
FeedsExecutable.php in src/FeedsExecutable.php
FeedsSubscriber.php in tests/modules/feeds_test_events/src/EventSubscriber/FeedsSubscriber.php
LazySubscriber.php in src/EventSubscriber/LazySubscriber.php

File

src/Event/CleanEvent.php, line 11

Namespace

Drupal\feeds\Event
View source
class CleanEvent extends EventBase {

  /**
   * The entity to clean.
   *
   * @var \Drupal\Core\Entity\EntityInterface
   */
  protected $entity;

  /**
   * Constructs a CleanEvent object.
   *
   * @param \Drupal\feeds\FeedInterface $feed
   *   The feed.
   * @param \Drupal\Core\Entity\EntityInterface $entity
   *   The entity to clean.
   */
  public function __construct(FeedInterface $feed, EntityInterface $entity) {
    $this->feed = $feed;
    $this->entity = $entity;
  }

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

}

Members

Namesort descending Modifiers Type Description Overrides
CleanEvent::$entity protected property The entity to clean.
CleanEvent::getEntity public function Returns the entity to clean.
CleanEvent::__construct public function Constructs a CleanEvent object. Overrides EventBase::__construct
EventBase::$feed protected property The feed being imported.
EventBase::getFeed public function Returns the feed.