class ExtraFieldDisplay in Extra Field 8
Same name and namespace in other branches
- 8.2 src/Annotation/ExtraFieldDisplay.php \Drupal\extra_field\Annotation\ExtraFieldDisplay
Defines a ExtraFieldDisplay item annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\extra_field\Annotation\ExtraFieldDisplay
Expanded class hierarchy of ExtraFieldDisplay
See also
\Drupal\extra_field\Plugin\ExtraFieldDisplayManager
11 classes are annotated with ExtraFieldDisplay
- AllNodeTypesTest in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ AllNodeTypesTest.php - Extra field Display for all node types.
- EmptyFormattedFieldTest in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ EmptyFormattedFieldTest.php - Extra field Display for a field without content.
- ExampleAllNodes in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleAllNodes.php - Example Extra field Display.
- ExampleArticle in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleArticle.php - Example Extra field Display.
- ExampleFormattedField in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleFormattedField.php - Example Extra field with formatted output.
File
- src/
Annotation/ ExtraFieldDisplay.php, line 14
Namespace
Drupal\extra_field\AnnotationView source
class ExtraFieldDisplay 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 entity + bundle combination(s) the plugin supports.
*
* Format: [entity].[bundle] for specific entity-bundle combinations or
* [entity].* for all bundles of the entity.
*
* @var string[]
*/
public $bundles = [];
/**
* The default weight of the field.
*
* @var int
*/
public $weight = 0;
/**
* Whether the field is visible by default.
*
* @var bool
*/
public $visible = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ExtraFieldDisplay:: |
public | property | The entity + bundle combination(s) the plugin supports. | |
ExtraFieldDisplay:: |
public | property | The plugin ID. | |
ExtraFieldDisplay:: |
public | property | The label of the plugin. | |
ExtraFieldDisplay:: |
public | property | Whether the field is visible by default. | |
ExtraFieldDisplay:: |
public | property | The default weight of the field. | |
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 |