public function MetadataGenerator::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/quickedit/src/MetadataGenerator.php \Drupal\quickedit\MetadataGenerator::__construct()
Constructs a new MetadataGenerator.
Parameters
\Drupal\quickedit\Access\EditEntityFieldAccessCheckInterface $access_checker: An object that checks if a user has access to edit a given field.
\Drupal\quickedit\EditorSelectorInterface $editor_selector: An object that determines which editor to attach to a given field.
\Drupal\Component\Plugin\PluginManagerInterface: The manager for editor plugins.
File
- core/
modules/ quickedit/ src/ MetadataGenerator.php, line 52 - Contains \Drupal\quickedit\MetadataGenerator.
Class
- MetadataGenerator
- Generates in-place editing metadata for an entity field.
Namespace
Drupal\quickeditCode
public function __construct(EditEntityFieldAccessCheckInterface $access_checker, EditorSelectorInterface $editor_selector, PluginManagerInterface $editor_manager) {
$this->accessChecker = $access_checker;
$this->editorSelector = $editor_selector;
$this->editorManager = $editor_manager;
}