MetadataGenerator::__construct

public MetadataGenerator::__construct(EditEntityFieldAccessCheckInterface $access_checker, EditorSelectorInterface $editor_selector, PluginManagerInterface $editor_manager)

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 $editor_manager: The manager for editor plugins.

File

core/modules/quickedit/src/MetadataGenerator.php, line 47

Class

MetadataGenerator
Generates in-place editing metadata for an entity field.

Namespace

Drupal\quickedit

Code

public function __construct(EditEntityFieldAccessCheckInterface $access_checker, EditorSelectorInterface $editor_selector, PluginManagerInterface $editor_manager) {
  $this->accessChecker = $access_checker;
  $this->editorSelector = $editor_selector;
  $this->editorManager = $editor_manager;
}
doc_Drupal
2016-10-29 09:28:24
Comments
Leave a Comment

Please login to continue.