MimeTypeGuesser

Defines a MIME type guesser that also supports stream wrapper paths. Hierarchy class \Drupal\Core\File\MimeType\MimeTypeGuesser implements MimeTypeGuesserInterface File core/lib/Drupal/Core/File/MimeType/MimeTypeGuesser.php, line 13 Namespace Drupal\Core\File\MimeType Members Name Modifiers Type Description MimeTypeGuesser::$guessers protected property An array of arrays of registered guessers keyed by priority. MimeTypeGuesser::$sortedGuessers protected property

MetadataGeneratorInterface::generateFieldMetadata

public MetadataGeneratorInterface::generateFieldMetadata(FieldItemListInterface $items, $view_mode) Generates in-place editing metadata for an entity field. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values to be in-place edited. string $view_mode: The view mode the field should be rerendered in. Return value array An array containing metadata with the following keys: label: the user-visible label for the field. access: whether the current user may edit the field

MetadataGeneratorInterface::generateEntityMetadata

public MetadataGeneratorInterface::generateEntityMetadata(EntityInterface $entity) Generates in-place editing metadata for an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity, in the language in which one of its fields is being edited. Return value array An array containing metadata with the following keys: label: the user-visible label for the entity in the given language. File core/modules/quickedit/src/MetadataGeneratorInterface.php, line 22 Class MetadataG

MetadataGeneratorInterface

Interface for generating in-place editing metadata. Hierarchy interface \Drupal\quickedit\MetadataGeneratorInterface File core/modules/quickedit/src/MetadataGeneratorInterface.php, line 11 Namespace Drupal\quickedit Members Name Modifiers Type Description MetadataGeneratorInterface::generateEntityMetadata public function Generates in-place editing metadata for an entity. MetadataGeneratorInterface::generateFieldMetadata public function Generates in-place editing

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

MetadataGenerator::generateFieldMetadata

public MetadataGenerator::generateFieldMetadata(FieldItemListInterface $items, $view_mode) Generates in-place editing metadata for an entity field. Parameters \Drupal\Core\Field\FieldItemListInterface $items: The field values to be in-place edited. string $view_mode: The view mode the field should be rerendered in. Return value array An array containing metadata with the following keys: label: the user-visible label for the field. access: whether the current user may edit the field or not.

MetadataGenerator::generateEntityMetadata

public MetadataGenerator::generateEntityMetadata(EntityInterface $entity) Generates in-place editing metadata for an entity. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity, in the language in which one of its fields is being edited. Return value array An array containing metadata with the following keys: label: the user-visible label for the entity in the given language. Overrides MetadataGeneratorInterface::generateEntityMetadata File core/modules/quickedit/src/Metadat

MetadataGenerator::$editorSelector

An object that determines which editor to attach to a given field. Type: \Drupal\quickedit\EditorSelectorInterface File core/modules/quickedit/src/MetadataGenerator.php, line 28 Class MetadataGenerator Generates in-place editing metadata for an entity field. Namespace Drupal\quickedit Code protected $editorSelector;

MetadataGenerator::$editorManager

The manager for editor plugins. Type: \Drupal\Component\Plugin\PluginManagerInterface File core/modules/quickedit/src/MetadataGenerator.php, line 35 Class MetadataGenerator Generates in-place editing metadata for an entity field. Namespace Drupal\quickedit Code protected $editorManager;

MetadataGenerator::$accessChecker

An object that checks if a user has access to edit a given entity field. Type: \Drupal\quickedit\Access\EditEntityFieldAccessCheckInterface File core/modules/quickedit/src/MetadataGenerator.php, line 21 Class MetadataGenerator Generates in-place editing metadata for an entity field. Namespace Drupal\quickedit Code protected $accessChecker;