interface ExtraFieldTypePluginInterface in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/ExtraFieldTypePluginInterface.php \Drupal\entity_extra_field\ExtraFieldTypePluginInterface
Define extra field type plugin interface.
Hierarchy
- interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Core\Plugin\ContainerFactoryPluginInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\entity_extra_field\ExtraFieldTypePluginInterface
Expanded class hierarchy of ExtraFieldTypePluginInterface
All classes that implement ExtraFieldTypePluginInterface
1 file declares its use of ExtraFieldTypePluginInterface
- EntityExtraField.php in src/
Entity/ EntityExtraField.php
File
- src/
ExtraFieldTypePluginInterface.php, line 15
Namespace
Drupal\entity_extra_fieldView source
interface ExtraFieldTypePluginInterface extends PluginFormInterface, ContainerFactoryPluginInterface, ConfigurableInterface, DependentPluginInterface {
/**
* Display the extra field plugin label.
*
* @return string
* Return the extra field plugin label.
*/
public function label();
/**
* Build the render array of the extra field type contents.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity type the extra field is being attached too.
* @param \Drupal\Core\Entity\Display\EntityDisplayInterface $display
* The entity display the extra field is apart of.
*
* @return array
* The extra field renderable array.
*/
public function build(EntityInterface $entity, EntityDisplayInterface $display);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
ContainerFactoryPluginInterface:: |
public static | function | Creates an instance of the plugin. | 112 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 19 |
ExtraFieldTypePluginInterface:: |
public | function | Build the render array of the extra field type contents. | 4 |
ExtraFieldTypePluginInterface:: |
public | function | Display the extra field plugin label. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |