core/modules/quickedit/src/MetadataGeneratorInterface.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/quickedit/src/MetadataGeneratorInterface.php b/core/modules/quickedit/src/MetadataGeneratorInterface.php index 40d8bcf..cc94979 100644 --- a/core/modules/quickedit/src/MetadataGeneratorInterface.php +++ b/core/modules/quickedit/src/MetadataGeneratorInterface.php @@ -22,7 +22,8 @@ * The entity, in the language in which one of its fields is being edited. * @return array * An array containing metadata with the following keys: - * - label: the user-visible label for the entity in the given language. + * - label: the user-visible label for the entity in the given language + * (HTML-safe). */ public function generateEntityMetadata(EntityInterface $entity); @@ -35,10 +36,10 @@ public function generateEntityMetadata(EntityInterface $entity); * The view mode the field should be rerendered in. * @return array * An array containing metadata with the following keys: - * - label: the user-visible label for the field. + * - label: the user-visible label for the field (HTML-safe). * - access: whether the current user may edit the field or not. * - editor: which editor should be used for the field. - * - aria: the ARIA label. + * - aria: the ARIA label (HTML-safe). * - custom: (optional) any additional metadata that the editor provides. */ public function generateFieldMetadata(FieldItemListInterface $items, $view_mode);