You are here

BlockStyle.php in Block Style Plugins 8.2

Same filename in this branch
  1. 8.2 src/Annotation/BlockStyle.php
  2. 8.2 src/Plugin/BlockStyle.php
Same filename and directory in other branches
  1. 8 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;

  /**
   * The type of plugin this will support block, section, or all.
   *
   * @var string
   */
  public $type = 'block';

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

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

  /**
   * Whether or not to embed the style form directly on the layout builder form.
   *
   * If set to true, the styles form will be embedded on the 'configure' form
   * of the layout builder block. Otherwise it will be added via a separate
   * 'Style settings' contextual link.
   *
   * @var array
   */
  public $layout_builder_embed_form = FALSE;

  /**
   * Do not automatically apply a css class based on the form value.
   *
   * @var array
   */
  public $disable_auto_classes = FALSE;

}

Classes

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