diff --git a/core/modules/media/src/Entity/MediaType.php b/core/modules/media/src/Entity/MediaType.php index d2e2677..8952ac4 100644 --- a/core/modules/media/src/Entity/MediaType.php +++ b/core/modules/media/src/Entity/MediaType.php @@ -13,6 +13,7 @@ * @ConfigEntityType( * id = "media_type", * label = @Translation("Media type"), + * label_collection = @Translation("Media"), * label_singular = @Translation("media type"), * label_plural = @Translation("media types"), * label_count = @PluralTranslation( diff --git a/core/modules/path/path.module b/core/modules/path/path.module index 182c6a9..536e634 100644 --- a/core/modules/path/path.module +++ b/core/modules/path/path.module @@ -62,7 +62,7 @@ function path_form_node_form_alter(&$form, FormStateInterface $form_state) { * Implements hook_entity_base_field_info(). */ function path_entity_base_field_info(EntityTypeInterface $entity_type) { - if ($entity_type->id() === 'taxonomy_term' || $entity_type->id() === 'node') { + if (in_array($entity_type->id(), ['taxonomy_term', 'node', 'media'])) { $fields['path'] = BaseFieldDefinition::create('path') ->setLabel(t('URL alias')) ->setTranslatable(TRUE)