123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace Drupal\Core\Block\Annotation;
- use Drupal\Component\Annotation\Plugin;
- /**
- * Defines a Block annotation object.
- *
- * @ingroup block_api
- *
- * @Annotation
- */
- class Block extends Plugin {
- /**
- * The plugin ID.
- *
- * @var string
- */
- public $id;
- /**
- * The administrative label of the block.
- *
- * @var \Drupal\Core\Annotation\Translation
- *
- * @ingroup plugin_translatable
- */
- public $admin_label = '';
- /**
- * The category in the admin UI where the block will be listed.
- *
- * @var \Drupal\Core\Annotation\Translation
- *
- * @ingroup plugin_translatable
- */
- public $category = '';
- /**
- * An array of context definitions describing the context used by the plugin.
- *
- * The array is keyed by context names.
- *
- * @var \Drupal\Core\Annotation\ContextDefinition[]
- *
- * @deprecated Providing context definitions via the "context" key is
- * deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use
- * the "context_definitions" key instead.
- */
- public $context = [];
- /**
- * An array of context definitions describing the context used by the plugin.
- *
- * The array is keyed by context names.
- *
- * @var \Drupal\Core\Annotation\ContextDefinition[]
- */
- public $context_definitions = [];
- }
|