bcubed-8.x-1.0-beta5/src/Annotation/Event.php
src/Annotation/Event.php
<?php
namespace Drupal\bcubed\Annotation;
use Drupal\Component\Annotation\Plugin;
/**
* Defines an Event plugin item annotation object.
*
* @see \Drupal\bcubed\Plugin\EventManager
* @see plugin_api
*
* @Annotation
*/
class Event extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The label of the plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* Additional administrative information about the plugin's behavior.
*
* @var \Drupal\Core\Annotation\Translationoptional
*
* @ingroup plugin_translatable
*/
public $description = '';
/**
* The default settings for the event.
*
* @var arrayoptional
*/
public $settings = [];
/**
* The BCubed plugin dependencies of this plugin.
*
* Example dependencies array, in annotation form:
* bcubed_dependencies = {
* {
* "plugin_type" = "event",
* "plugin_id" = "some_event",
* "same_set" = true,
* "dependency_type" = "requires",
* },
* {
* "plugin_type" = "condition",
* "plugin_id" = "some_condition",
* "same_set" = false,
* "dependency_type" = "generated_by",
* }
* }
*
* @var arrayoptional
*/
public $bcubed_dependencies = [];
/**
* Any generated strings registered by the plugin.
*
* @var arrayoptional
*/
public $generated_strings = [];
/**
* Key to use for generated strings. Defaults to plugin id.
*
* @var stringoptional
*/
public $generated_strings_dictionary = '';
}
