public function EntityLabel::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php \Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplay\EntityLabel::__construct()
Constructs entity label plugin.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
Overrides FieldWidgetDisplayBase::__construct
File
- src/
Plugin/ EntityBrowser/ FieldWidgetDisplay/ EntityLabel.php, line 42
Class
- EntityLabel
- Displays a label of the entity.
Namespace
Drupal\entity_browser\Plugin\EntityBrowser\FieldWidgetDisplayCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityRepository = $entity_repository;
}