summaryrefslogtreecommitdiffstats
path: root/core/modules/path/path.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/path/path.module')
-rw-r--r--core/modules/path/path.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/path/path.module b/core/modules/path/path.module
index a724b77..a182214 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'], TRUE)) {
$fields['path'] = BaseFieldDefinition::create('path')
->setLabel(t('URL alias'))
->setTranslatable(TRUE)