function EditorFileReference::__construct
Same name in other branches
- 9 core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::__construct()
- 10 core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::__construct()
- 11.x core/modules/editor/src/Plugin/Filter/EditorFileReference.php \Drupal\editor\Plugin\Filter\EditorFileReference::__construct()
Constructs a \Drupal\editor\Plugin\Filter\EditorFileReference object.
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 FilterBase::__construct
File
-
core/
modules/ editor/ src/ Plugin/ Filter/ EditorFileReference.php, line 53
Class
- EditorFileReference
- Provides a filter to track images uploaded via a Text Editor.
Namespace
Drupal\editor\Plugin\FilterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository) {
$this->entityRepository = $entity_repository;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.