Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
301
Merge Requests
301
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d249e95a
Commit
d249e95a
authored
Nov 13, 2012
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1837022
by yched: Fixed Field API comment fixes.
parent
3337298b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
core/modules/field/field.info.inc
core/modules/field/field.info.inc
+5
-5
core/modules/field/lib/Drupal/field/FieldInfo.php
core/modules/field/lib/Drupal/field/FieldInfo.php
+3
-6
No files found.
core/modules/field/field.info.inc
View file @
d249e95a
...
...
@@ -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 retriev
e 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.
*
...
...
core/modules/field/lib/Drupal/field/FieldInfo.php
View file @
d249e95a
...
...
@@ -13,8 +13,8 @@
* 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 a
s
* a "static cache" of fields and instances definitions.
* the request by the
_field_info_field_cache() function. The object propertie
s
* a
ct 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 exist
s
.
* Separately tracks requested field names or IDs that do not exist.
*
* @var array
*/
...
...
@@ -203,9 +203,6 @@ public function getFields() {
/**
* 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.
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment