You are here

class ParagraphsBehavior in Paragraphs 8

Defines a ParagraphsBehavior annotation object.

Paragraphs behavior builders handle extra settings for the paragraph entity.

Hierarchy

Expanded class hierarchy of ParagraphsBehavior

4 classes are annotated with ParagraphsBehavior
TestBoldTextBehavior in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestBoldTextBehavior.php
Provides a test feature plugin.
TestDummyBehavior in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestDummyBehavior.php
Provides a test feature plugin.
TestFieldsSelectionBehavior in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestFieldsSelectionBehavior.php
Test plugin with field selection.
TestTextColorBehavior in tests/modules/paragraphs_test/src/Plugin/paragraphs/Behavior/TestTextColorBehavior.php
Provides a test feature plugin.

File

src/Annotation/ParagraphsBehavior.php, line 16

Namespace

Drupal\paragraphs\Annotation
View source
class ParagraphsBehavior extends Plugin {

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

  /**
   * The human-readable name of the paragraphs behavior plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The plugin description.
   *
   * @ingroup plugin_translatable
   *
   * @var string
   */
  public $description;

  /**
   * The plugin weight.
   *
   * @var int
   */
  public $weight;

}

Members

Namesort descending Modifiers Type Description Overrides
ParagraphsBehavior::$description public property The plugin description.
ParagraphsBehavior::$id public property The plugin ID.
ParagraphsBehavior::$label public property The human-readable name of the paragraphs behavior plugin.
ParagraphsBehavior::$weight public property The plugin weight.
Plugin::$definition protected property The plugin definition read from the class annotation. 1
Plugin::get public function Gets the value of an annotation. Overrides AnnotationInterface::get 5
Plugin::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
Plugin::getId public function Gets the unique ID for this annotated class. Overrides AnnotationInterface::getId
Plugin::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
Plugin::parse protected function Parses an annotation into its definition.
Plugin::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
Plugin::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
Plugin::__construct public function Constructs a Plugin object. 2