collection-8.x-1.x-dev/src/Event/CollectionEvents.php

src/Event/CollectionEvents.php
<?php

namespace Drupal\collection\Event;

/**
 * Class CollectionEvents
 * @package Drupal\collection\Event
 */
final class CollectionEvents {

  /**
   * Name of the event fired after a new collection entity is saved.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ENTITY_CREATE = 'collection.entity.create';

  /**
   * Name of the event fired after an existing collection entity is saved.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ENTITY_UPDATE = 'collection.entity.update';

  /**
   * Name of the event fired after a new collection_item entity is saved.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ITEM_ENTITY_CREATE = 'collection_item.entity.create';

  /**
   * Name of the event fired after an existing collection_item entity is saved.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ITEM_ENTITY_UPDATE = 'collection_item.entity.update';

  /**
   * Name of the event fired after an existing collection_item entity is deleted.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ITEM_ENTITY_DELETE = 'collection_item.entity.delete';

  /**
   * Name of the event fired after a collection item entity is saved via a form.
   *
   * @Event
   * @see \Drupal\collection\Event\CollectionEvents
   * @var string
   */
  const COLLECTION_ITEM_FORM_SAVE = 'collection_item.form.save';

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc