final class YamlContentEvents in YAML Content 8
Same name and namespace in other branches
- 8.2 src/Event/YamlContentEvents.php \Drupal\yaml_content\Event\YamlContentEvents
Defines events for the YAML Content framework.
Hierarchy
- class \Drupal\yaml_content\Event\YamlContentEvents
Expanded class hierarchy of YamlContentEvents
See also
\Drupal\yaml_content\Event\ContentParsedEvent
\Drupal\yaml_content\Event\EntityPreSaveEvent
\Drupal\yaml_content\Event\EntityPostSaveEvent
\Drupal\yaml_content\Event\EntityImportEvent
\Drupal\yaml_content\Event\FieldImportEvent
2 files declare their use of YamlContentEvents
- ContentLoader.php in src/
ContentLoader/ ContentLoader.php - MenuHierarchySubscriber.php in src/
EventSubscriber/ MenuHierarchySubscriber.php
File
- src/
Event/ YamlContentEvents.php, line 14
Namespace
Drupal\yaml_content\EventView source
final class YamlContentEvents {
/**
* Name of the event fired when a content file is parsed.
*
* This event allows modules to perform an action whenever a content file
* is parsed for import. The event listener receives a
* \Drupal\yaml_content\Event\ContentParsedEvent instance.
*
* @Event
*
* @see \Drupal\yaml_content\Event\ContentParsedEvent
*
* @var string
*/
const CONTENT_PARSED = 'yaml_content.import.content_parsed';
/**
* Name of the event fired before an imported entity is saved.
*
* This event allows modules to perform an action whenever an entity is
* prepared, but before it is saved. The event listener receives a
* \Drupal\yaml_content\Event\EntityPreSaveEvent instance.
*
* @Event
*
* @see \Drupal\yaml_content\Event\EntityPreSaveEvent
*/
const ENTITY_PRE_SAVE = 'yaml_content.import.entity_pre_save';
/**
* Name of the event fired after an imported entity is saved.
*
* This event allows modules to perform an action whenever an entity is
* imported and saved. The event listener receives a
* \Drupal\yaml_content\Event\EntityPostSaveEvent instance.
*
* @Event
*
* @see \Drupal\yaml_content\Event\EntityPostSaveEvent
*/
const ENTITY_POST_SAVE = 'yaml_content.import.entity_post_save';
/**
* Name of the event fired before entity data is imported as a created entity.
*
* This event allows modules to perform an action whenever entity data is
* about to be interpreted created as an entity. The event listener receives
* a \Drupal\yaml_content\Event\EntityImportEvent instance.
*
* @Event
*
* @see \Drupal\yaml_content\Event\EntityImportEvent
*/
const IMPORT_ENTITY = 'yaml_content.import.import_entity';
/**
* Name of the event fired before entity field data is imported and assigned.
*
* This event allows modules to perform an action whenever field data is about
* to be interpreted and populated into an entity field. The event listener
* receives a \Drupal\yaml_content\Event\FieldImportEvent instance.
*
* @Event
*
* @see \Drupal\yaml_content\Event\FieldImportEvent
*/
const IMPORT_FIELD = 'yaml_content.import.import_field';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
YamlContentEvents:: |
constant | Name of the event fired when a content file is parsed. | ||
YamlContentEvents:: |
constant | Name of the event fired after an imported entity is saved. | ||
YamlContentEvents:: |
constant | Name of the event fired before an imported entity is saved. | ||
YamlContentEvents:: |
constant | Name of the event fired before entity data is imported as a created entity. | ||
YamlContentEvents:: |
constant | Name of the event fired before entity field data is imported and assigned. |