From d249e95a993b51d230a104d9d0b593c4341f9bf3 Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 13 Nov 2012 21:14:18 -0800 Subject: [PATCH] Issue #1837022 by yched: Fixed Field API comment fixes. --- core/modules/field/field.info.inc | 10 +++++----- core/modules/field/lib/Drupal/field/FieldInfo.php | 9 +++------ 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/core/modules/field/field.info.inc b/core/modules/field/field.info.inc index 323a4faff641..77efb14ccbdd 100644 --- a/core/modules/field/field.info.inc +++ b/core/modules/field/field.info.inc @@ -399,13 +399,13 @@ function field_info_field_by_ids() { /** * Retrieves information about field instances. * - * Use of this function to retriev instances across separate bundles (i.e. when - * the $bundle parameter is NULL) should be avoided when possible, since it - * loads and statically caches a potentially large array of information. Use - * field_info_field_map() instead. + * Use of this function to retrieve instances across separate bundles (i.e. + * when the $bundle parameter is NULL) should be avoided when possible, since + * it loads and statically caches a potentially large array of information. + * Use field_info_field_map() instead. * * When retrieving the instances of a specific bundle (i.e. when both - * $entity_type and $bundle_name are provided, the function also populates a + * $entity_type and $bundle_name are provided), the function also populates a * static cache with the corresponding field definitions, allowing fast * retrieval of field_info_field() later in the request. * diff --git a/core/modules/field/lib/Drupal/field/FieldInfo.php b/core/modules/field/lib/Drupal/field/FieldInfo.php index 313495642069..d203e42fe180 100644 --- a/core/modules/field/lib/Drupal/field/FieldInfo.php +++ b/core/modules/field/lib/Drupal/field/FieldInfo.php @@ -13,8 +13,8 @@ use Drupal\Core\Cache\CacheBackendInterface; * Provides field and instance definitions for the current runtime environment. * * A Drupal\field\FieldInfo object is created and statically persisted through - * the request by the field_info_cache() function. The object properties act as - * a "static cache" of fields and instances definitions. + * the request by the _field_info_field_cache() function. The object properties + * act as a "static cache" of fields and instances definitions. * * The preferred way to access definitions is through the getBundleInstances() * method, which keeps cache entries per bundle, storing both fields and @@ -61,7 +61,7 @@ class FieldInfo { protected $loadedAllFields = FALSE; /** - * Separately tracks requested field names or IDs that do not exists. + * Separately tracks requested field names or IDs that do not exist. * * @var array */ @@ -203,9 +203,6 @@ class FieldInfo { /** * Retrieves all active, non-deleted instances definitions. * - * This method does not read from nor populate the "static" and persistent - * caches. - * * @param $entity_type * (optional) The entity type. *