class ParagraphsBehavior in Paragraphs 8
Defines a ParagraphsBehavior annotation object.
Paragraphs behavior builders handle extra settings for the paragraph entity.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\paragraphs\Annotation\ParagraphsBehavior
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\AnnotationView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParagraphsBehavior:: |
public | property | The plugin description. | |
ParagraphsBehavior:: |
public | property | The plugin ID. | |
ParagraphsBehavior:: |
public | property | The human-readable name of the paragraphs behavior plugin. | |
ParagraphsBehavior:: |
public | property | The plugin weight. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |