You are here

BlockStyle.php in Block Style Plugins 8

Same filename in this branch
  1. 8 src/Annotation/BlockStyle.php
  2. 8 src/Plugin/BlockStyle.php
Same filename and directory in other branches
  1. 8.2 src/Annotation/BlockStyle.php

File

src/Annotation/BlockStyle.php
View source
<?php

namespace Drupal\block_style_plugins\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a Block style item annotation object.
 *
 * @see \Drupal\block_style_plugins\Plugin\BlockStyleManager
 * @see plugin_api
 *
 * @Annotation
 */
class BlockStyle extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;

  /**
   * Block types to exclude.
   *
   * @var array
   */
  public $exclude = [];

  /**
   * Include only these block types.
   *
   * @var array
   */
  public $include = [];

}

Classes

Namesort descending Description
BlockStyle Defines a Block style item annotation object.