diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php index 823fc44..466c840 100644 --- a/core/lib/Drupal/Core/Entity/Entity.php +++ b/core/lib/Drupal/Core/Entity/Entity.php @@ -151,7 +151,7 @@ public function label($langcode = NULL) { /** * Returns the URI elements of the entity. * - * A URI pattern, might be set in the links array in an annotation, for + * URI templates might be set in the links array in an annotation, for * example: * @code * links = { @@ -165,7 +165,7 @@ public function label($langcode = NULL) { * uri_callback = "contact_category_uri", * @endcode * If looking for the canonical URI, and it was not set in the links array - * or in a uri_callback function, the path is set using the default pattern: + * or in a uri_callback function, the path is set using the default template: * entity/entityType/id. * * @param string $rel @@ -178,12 +178,12 @@ public function label($langcode = NULL) { public function uri($rel = 'canonical') { $entity_info = $this->entityInfo(); - // The links array might contain URI patterns set in annotations. + // The links array might contain URI templates set in annotations. $link_templates = isset($entity_info['links']) ? $entity_info['links'] : array(); if (isset($link_templates[$rel])) { - // If there is a pattern for the given relationship type, do the pattern - // replacement and use that as the path. + // If there is a template for the given relationship type, do the + // placeholder replacement and use that as the path. $template = $link_templates[$rel]; $replacements = $this->uriPlaceholderReplacements(); $uri['path'] = str_replace(array_keys($replacements), array_values($replacements), $template);