Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
71711656
Commit
71711656
authored
May 10, 2015
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2471653
by bojanz, Kazanir: Standardize getter docblocks in Drupal\Core\Entity
parent
ec9c4b06
Changes
42
Show whitespace changes
Inline
Side-by-side
Showing
42 changed files
with
145 additions
and
145 deletions
+145
-145
core/lib/Drupal/Core/Entity/ContentEntityBase.php
core/lib/Drupal/Core/Entity/ContentEntityBase.php
+1
-1
core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php
core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php
+2
-2
core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php
...lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php
+6
-6
core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php
...Drupal/Core/Entity/Display/EntityViewDisplayInterface.php
+2
-2
core/lib/Drupal/Core/Entity/Entity.php
core/lib/Drupal/Core/Entity/Entity.php
+5
-5
core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php
core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php
+1
-1
core/lib/Drupal/Core/Entity/EntityChangedInterface.php
core/lib/Drupal/Core/Entity/EntityChangedInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
.../lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
+1
-1
core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php
...al/Core/Entity/EntityDefinitionUpdateManagerInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php
core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php
+2
-2
core/lib/Drupal/Core/Entity/EntityDisplayBase.php
core/lib/Drupal/Core/Entity/EntityDisplayBase.php
+2
-2
core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php
core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityForm.php
core/lib/Drupal/Core/Entity/EntityForm.php
+1
-1
core/lib/Drupal/Core/Entity/EntityFormBuilderInterface.php
core/lib/Drupal/Core/Entity/EntityFormBuilderInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityFormInterface.php
core/lib/Drupal/Core/Entity/EntityFormInterface.php
+2
-2
core/lib/Drupal/Core/Entity/EntityHandlerBase.php
core/lib/Drupal/Core/Entity/EntityHandlerBase.php
+1
-1
core/lib/Drupal/Core/Entity/EntityInterface.php
core/lib/Drupal/Core/Entity/EntityInterface.php
+16
-16
core/lib/Drupal/Core/Entity/EntityListBuilder.php
core/lib/Drupal/Core/Entity/EntityListBuilder.php
+2
-2
core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityManager.php
core/lib/Drupal/Core/Entity/EntityManager.php
+3
-3
core/lib/Drupal/Core/Entity/EntityManagerInterface.php
core/lib/Drupal/Core/Entity/EntityManagerInterface.php
+13
-13
core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php
...re/Entity/EntityReferenceSelection/SelectionInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php
...ityReferenceSelection/SelectionPluginManagerInterface.php
+1
-1
core/lib/Drupal/Core/Entity/EntityResolverManager.php
core/lib/Drupal/Core/Entity/EntityResolverManager.php
+1
-1
core/lib/Drupal/Core/Entity/EntityStorageInterface.php
core/lib/Drupal/Core/Entity/EntityStorageInterface.php
+4
-4
core/lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php
...lib/Drupal/Core/Entity/EntityTypeEventSubscriberTrait.php
+1
-1
core/lib/Drupal/Core/Entity/EntityTypeInterface.php
core/lib/Drupal/Core/Entity/EntityTypeInterface.php
+29
-29
core/lib/Drupal/Core/Entity/EntityViewBuilder.php
core/lib/Drupal/Core/Entity/EntityViewBuilder.php
+2
-2
core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php
core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php
+4
-4
core/lib/Drupal/Core/Entity/EntityWithPluginCollectionInterface.php
...rupal/Core/Entity/EntityWithPluginCollectionInterface.php
+1
-1
core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
core/lib/Drupal/Core/Entity/FieldableEntityInterface.php
+2
-2
core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
...ib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
+1
-1
core/lib/Drupal/Core/Entity/Query/QueryFactoryInterface.php
core/lib/Drupal/Core/Entity/Query/QueryFactoryInterface.php
+1
-1
core/lib/Drupal/Core/Entity/Query/Sql/Query.php
core/lib/Drupal/Core/Entity/Query/Sql/Query.php
+1
-1
core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
core/lib/Drupal/Core/Entity/Query/Sql/Tables.php
+1
-1
core/lib/Drupal/Core/Entity/Query/Sql/TablesInterface.php
core/lib/Drupal/Core/Entity/Query/Sql/TablesInterface.php
+1
-1
core/lib/Drupal/Core/Entity/RevisionableInterface.php
core/lib/Drupal/Core/Entity/RevisionableInterface.php
+2
-2
core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
core/lib/Drupal/Core/Entity/Sql/DefaultTableMapping.php
+1
-1
core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
+7
-7
core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
.../Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php
+10
-10
core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php
core/lib/Drupal/Core/Entity/Sql/TableMappingInterface.php
+7
-7
core/lib/Drupal/Core/Entity/TypedData/EntityDataDefinitionInterface.php
...l/Core/Entity/TypedData/EntityDataDefinitionInterface.php
+2
-2
No files found.
core/lib/Drupal/Core/Entity/ContentEntityBase.php
View file @
71711656
...
...
@@ -981,7 +981,7 @@ public function referencedEntities() {
}
/**
*
R
et
urn
s the value of the given entity key, if defined.
*
G
ets the value of the given entity key, if defined.
*
* @param string $key
* Name of the entity key, for example id, revision or bundle.
...
...
core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php
View file @
71711656
...
...
@@ -16,7 +16,7 @@
interface
ContentEntityFormInterface
extends
EntityFormInterface
{
/**
*
R
et
urn
s the form display.
*
G
ets the form display.
*
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
...
...
@@ -40,7 +40,7 @@ public function getFormDisplay(FormStateInterface $form_state);
public
function
setFormDisplay
(
EntityFormDisplayInterface
$form_display
,
FormStateInterface
$form_state
);
/**
*
R
et
urn
s the code identifying the active form language.
*
G
ets the code identifying the active form language.
*
* @param \Drupal\Core\Form\FormStateInterface $form_state
* The current state of the form.
...
...
core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php
View file @
71711656
...
...
@@ -72,7 +72,7 @@ public function setComponent($name, array $options = array());
public
function
removeComponent
(
$name
);
/**
*
R
et
urn
s the highest weight of the components in the display.
*
G
ets the highest weight of the components in the display.
*
* @return int|null
* The highest weight of the components in the display, or NULL if the
...
...
@@ -81,7 +81,7 @@ public function removeComponent($name);
public
function
getHighestWeight
();
/**
*
R
et
urn
s the renderer plugin for a field (e.g. widget, formatter).
*
G
ets the renderer plugin for a field (e.g. widget, formatter).
*
* @param string $field_name
* The field name.
...
...
@@ -92,7 +92,7 @@ public function getHighestWeight();
public
function
getRenderer
(
$field_name
);
/**
*
R
et
urn
s the entity type for which this display is used.
*
G
ets the entity type for which this display is used.
*
* @return string
* The entity type id.
...
...
@@ -100,7 +100,7 @@ public function getRenderer($field_name);
public
function
getTargetEntityTypeId
();
/**
*
R
et
urn
s the view or form mode to be displayed.
*
G
ets the view or form mode to be displayed.
*
* @return string
* The mode to be displayed.
...
...
@@ -108,7 +108,7 @@ public function getTargetEntityTypeId();
public
function
getMode
();
/**
*
R
et
urn
s the original view or form mode that was requested.
*
G
ets the original view or form mode that was requested.
*
* @return string
* The original mode that was requested.
...
...
@@ -116,7 +116,7 @@ public function getMode();
public
function
getOriginalMode
();
/**
*
R
et
urn
s the bundle to be displayed.
*
G
ets the bundle to be displayed.
*
* @return string
* The bundle to be displayed.
...
...
core/lib/Drupal/Core/Entity/Display/EntityViewDisplayInterface.php
View file @
71711656
...
...
@@ -15,7 +15,7 @@
interface
EntityViewDisplayInterface
extends
EntityDisplayInterface
{
/**
*
Return
s a renderable array for the components of an entity.
*
Build
s a renderable array for the components of an entity.
*
* See the buildMultiple() method for details.
*
...
...
@@ -30,7 +30,7 @@ interface EntityViewDisplayInterface extends EntityDisplayInterface {
public
function
build
(
FieldableEntityInterface
$entity
);
/**
*
Return
s a renderable array for the components of a set of entities.
*
Build
s a renderable array for the components of a set of entities.
*
* This only includes the components handled by the Display object, but
* excludes 'extra fields', that are typically rendered through specific,
...
...
core/lib/Drupal/Core/Entity/Entity.php
View file @
71711656
...
...
@@ -67,7 +67,7 @@ public function __construct(array $values, $entity_type) {
}
/**
*
R
et
urn
s the entity manager.
*
G
ets the entity manager.
*
* @return \Drupal\Core\Entity\EntityManagerInterface
*/
...
...
@@ -76,7 +76,7 @@ protected function entityManager() {
}
/**
*
R
et
urn
s the language manager.
*
G
ets the language manager.
*
* @return \Drupal\Core\Language\LanguageManagerInterface
*/
...
...
@@ -85,7 +85,7 @@ protected function languageManager() {
}
/**
*
R
et
urn
s the UUID generator.
*
G
ets the UUID generator.
*
* @return \Drupal\Component\Uuid\UuidInterface
*/
...
...
@@ -235,7 +235,7 @@ public function hasLinkTemplate($rel) {
}
/**
*
R
et
urn
s an array link templates.
*
G
ets an array link templates.
*
* @return array
* An array of link templates containing paths.
...
...
@@ -274,7 +274,7 @@ public function url($rel = 'canonical', $options = array()) {
}
/**
*
R
et
urn
s an array of placeholders for this entity.
*
G
ets an array of placeholders for this entity.
*
* Individual entity classes may override this method to add additional
* placeholders if desired. If so, they should be sure to replicate the
...
...
core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php
View file @
71711656
...
...
@@ -34,7 +34,7 @@ public function __construct(SelectionPluginManagerInterface $selection_manager)
}
/**
*
R
et
urn
s matched labels based on a given search string.
*
G
ets matched labels based on a given search string.
*
* @param string $target_type
* The ID of the target entity type.
...
...
core/lib/Drupal/Core/Entity/EntityChangedInterface.php
View file @
71711656
...
...
@@ -22,7 +22,7 @@
interface
EntityChangedInterface
{
/**
*
R
et
urn
s the timestamp of the last entity change.
*
G
ets the timestamp of the last entity change.
*
* @return int
* The timestamp of the last entity save operation.
...
...
core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
View file @
71711656
...
...
@@ -146,7 +146,7 @@ public function applyUpdates() {
}
/**
*
R
et
urn
s a list of changes to entity type and field storage definitions.
*
G
ets a list of changes to entity type and field storage definitions.
*
* @return array
* An associative array keyed by entity type id of change descriptors. Every
...
...
core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManagerInterface.php
View file @
71711656
...
...
@@ -64,7 +64,7 @@ interface EntityDefinitionUpdateManagerInterface {
public
function
needsUpdates
();
/**
*
R
et
urn
s a human readable summary of the detected changes.
*
G
ets a human readable summary of the detected changes.
*
* @return array
* An associative array keyed by entity type id. Each entry is an array of
...
...
core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php
View file @
71711656
...
...
@@ -22,7 +22,7 @@ trait EntityDeleteFormTrait {
use
ConfigDependencyDeleteFormTrait
;
/**
*
R
et
urn
s the entity of this form.
*
G
ets the entity of this form.
*
* Provided by \Drupal\Core\Entity\EntityForm.
*
...
...
@@ -62,7 +62,7 @@ public function getConfirmText() {
}
/**
*
R
et
urn
s the message to display to the user after deleting the entity.
*
G
ets the message to display to the user after deleting the entity.
*
* @return string
* The translated string of the deletion message.
...
...
core/lib/Drupal/Core/Entity/EntityDisplayBase.php
View file @
71711656
...
...
@@ -388,7 +388,7 @@ public function getHighestWeight() {
}
/**
*
R
et
urn
s the field definition of a field.
*
G
ets the field definition of a field.
*/
protected
function
getFieldDefinition
(
$field_name
)
{
$definitions
=
$this
->
getFieldDefinitions
();
...
...
@@ -396,7 +396,7 @@ protected function getFieldDefinition($field_name) {
}
/**
*
R
et
urn
s the definitions of the fields that are candidate for display.
*
G
ets the definitions of the fields that are candidate for display.
*/
protected
function
getFieldDefinitions
()
{
if
(
!
isset
(
$this
->
fieldDefinitions
))
{
...
...
core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php
View file @
71711656
...
...
@@ -15,7 +15,7 @@
interface
EntityDisplayModeInterface
extends
ConfigEntityInterface
{
/**
*
R
et
urn
s the entity type this display mode is used for.
*
G
ets the entity type this display mode is used for.
*
* @return string
* The entity type name.
...
...
core/lib/Drupal/Core/Entity/EntityForm.php
View file @
71711656
...
...
@@ -129,7 +129,7 @@ protected function init(FormStateInterface $form_state) {
}
/**
*
R
et
urn
s the actual form array to be built.
*
G
ets the actual form array to be built.
*
* @see \Drupal\Core\Entity\EntityForm::processForm()
* @see \Drupal\Core\Entity\EntityForm::afterBuild()
...
...
core/lib/Drupal/Core/Entity/EntityFormBuilderInterface.php
View file @
71711656
...
...
@@ -13,7 +13,7 @@
interface
EntityFormBuilderInterface
{
/**
*
R
et
urn
s the built and processed entity form for the given entity.
*
G
ets the built and processed entity form for the given entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity to be created or edited.
...
...
core/lib/Drupal/Core/Entity/EntityFormInterface.php
View file @
71711656
...
...
@@ -29,7 +29,7 @@ interface EntityFormInterface extends BaseFormIdInterface {
public
function
setOperation
(
$operation
);
/**
*
R
et
urn
s the operation identifying the form.
*
G
ets the operation identifying the form.
*
* @return string
* The name of the operation.
...
...
@@ -37,7 +37,7 @@ public function setOperation($operation);
public
function
getOperation
();
/**
*
R
et
urn
s the form entity.
*
G
ets the form entity.
*
* The form entity which has been used for populating form element defaults.
*
...
...
core/lib/Drupal/Core/Entity/EntityHandlerBase.php
View file @
71711656
...
...
@@ -28,7 +28,7 @@ abstract class EntityHandlerBase {
protected
$moduleHandler
;
/**
*
R
et
urn
s the module handler.
*
G
ets the module handler.
*
* @return \Drupal\Core\Extension\ModuleHandlerInterface
* The module handler.
...
...
core/lib/Drupal/Core/Entity/EntityInterface.php
View file @
71711656
...
...
@@ -18,7 +18,7 @@
interface
EntityInterface
extends
AccessibleInterface
,
CacheableDependencyInterface
{
/**
*
R
et
urn
s the entity UUID (Universally Unique Identifier).
*
G
ets the entity UUID (Universally Unique Identifier).
*
* The UUID is guaranteed to be unique and can be used to identify an entity
* across multiple systems.
...
...
@@ -29,7 +29,7 @@ interface EntityInterface extends AccessibleInterface, CacheableDependencyInterf
public
function
uuid
();
/**
*
R
et
urn
s the identifier.
*
G
ets the identifier.
*
* @return string|int|null
* The entity identifier, or NULL if the object does not yet have an
...
...
@@ -38,7 +38,7 @@ public function uuid();
public
function
id
();
/**
*
R
et
urn
s the language of the entity.
*
G
ets the language of the entity.
*
* @return \Drupal\Core\Language\LanguageInterface
* The language object.
...
...
@@ -46,7 +46,7 @@ public function id();
public
function
language
();
/**
*
R
et
urn
s whether the entity is new.
*
D
et
ermine
s whether the entity is new.
*
* Usually an entity is new if no ID exists for it yet. However, entities may
* be enforced to be new with existing IDs too.
...
...
@@ -75,7 +75,7 @@ public function isNew();
public
function
enforceIsNew
(
$value
=
TRUE
);
/**
*
R
et
urn
s the ID of the type of the entity.
*
G
ets the ID of the type of the entity.
*
* @return string
* The entity type ID.
...
...
@@ -83,7 +83,7 @@ public function enforceIsNew($value = TRUE);
public
function
getEntityTypeId
();
/**
*
R
et
urn
s the bundle of the entity.
*
G
ets the bundle of the entity.
*
* @return string
* The bundle of the entity. Defaults to the entity type ID if the entity
...
...
@@ -92,7 +92,7 @@ public function getEntityTypeId();
public
function
bundle
();
/**
*
R
et
urn
s the label of the entity.
*
G
ets the label of the entity.
*
* @return string|null
* The label of the entity, or NULL if there is no label defined.
...
...
@@ -100,7 +100,7 @@ public function bundle();
public
function
label
();
/**
*
R
et
urn
s the URI elements of the entity.
*
G
ets the URI elements of the entity.
*
* URI templates might be set in the links array in an annotation, for
* example:
...
...
@@ -131,7 +131,7 @@ public function label();
public
function
urlInfo
(
$rel
=
'canonical'
,
array
$options
=
array
());
/**
*
R
et
urn
s the public URL for this entity.
*
G
ets the public URL for this entity.
*
* @param string $rel
* The link relationship type, for example: canonical or edit-form.
...
...
@@ -162,7 +162,7 @@ public function url($rel = 'canonical', $options = array());
public
function
link
(
$text
=
NULL
,
$rel
=
'canonical'
,
array
$options
=
[]);
/**
*
R
et
urn
s the internal path for this entity.
*
G
ets the internal path for this entity.
*
* self::url() will return the full path including any prefixes, fragments, or
* query strings. This path does not include those.
...
...
@@ -190,7 +190,7 @@ public function getSystemPath($rel = 'canonical');
public
function
hasLinkTemplate
(
$key
);
/**
*
R
et
urn
s a list of URI relationships supported by this entity.
*
G
ets a list of URI relationships supported by this entity.
*
* @return string[]
* An array of link relationships supported by this entity.
...
...
@@ -341,7 +341,7 @@ public static function postLoad(EntityStorageInterface $storage, array &$entitie
public
function
createDuplicate
();
/**
*
R
et
urn
s the entity type definition.
*
G
ets the entity type definition.
*
* @return \Drupal\Core\Entity\EntityTypeInterface
* The entity type definition.
...
...
@@ -349,7 +349,7 @@ public function createDuplicate();
public
function
getEntityType
();
/**
*
R
et
urn
s a list of entities referenced by this entity.
*
G
ets a list of entities referenced by this entity.
*
* @return \Drupal\Core\Entity\EntityInterface[]
* An array of entities.
...
...
@@ -357,7 +357,7 @@ public function getEntityType();
public
function
referencedEntities
();
/**
*
R
et
urn
s the original ID.
*
G
ets the original ID.
*
* @return int|string|null
* The original ID, or NULL if no ID was set or for entity types that do not
...
...
@@ -377,7 +377,7 @@ public function getOriginalId();
public
function
setOriginalId
(
$id
);
/**
*
R
et
urn
s an array of all property values.
*
G
ets an array of all property values.
*
* @return mixed[]
* An array of property values, keyed by property name.
...
...
@@ -385,7 +385,7 @@ public function setOriginalId($id);
public
function
toArray
();
/**
*
R
et
urn
s a typed data object for this entity object.
*
G
ets a typed data object for this entity object.
*
* The returned typed data object wraps this entity and allows dealing with
* entities based on the generic typed data API.
...
...
core/lib/Drupal/Core/Entity/EntityListBuilder.php
View file @
71711656
...
...
@@ -101,7 +101,7 @@ protected function getEntityIds() {
}
/**
*
R
et
urn
s the escaped label of an entity.
*
G
ets the escaped label of an entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity being listed.
...
...
@@ -234,7 +234,7 @@ public function render() {
}
/**
*
R
et
urn
s the title of the page.
*
G
ets the title of the page.
*
* @return string
* A string title of the page.
...
...
core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php
View file @
71711656
...
...
@@ -48,7 +48,7 @@ public function load();
public
function
getOperations
(
EntityInterface
$entity
);
/**
*
Return
s a listing of entities for the given entity type.
*
Build
s a listing of entities for the given entity type.
*
* @return array
* A render array as expected by drupal_render().
...
...
core/lib/Drupal/Core/Entity/EntityManager.php
View file @
71711656
...
...
@@ -913,7 +913,7 @@ public function getFormModes($entity_type_id) {
}
/**
*
R
et
urn
s the entity display mode info for all entity types.
*
G
ets the entity display mode info for all entity types.
*
* @param string $display_type
* The display type to be retrieved. It can be "view_mode" or "form_mode".
...
...
@@ -944,7 +944,7 @@ protected function getAllDisplayModesByEntityType($display_type) {
}
/**
*
R
et
urn
s the entity display mode info for a specific entity type.
*
G
ets the entity display mode info for a specific entity type.
*
* @param string $display_type
* The display type to be retrieved. It can be "view_mode" or "form_mode".
...
...
@@ -982,7 +982,7 @@ public function getFormModeOptions($entity_type, $include_disabled = FALSE) {
}
/**
*
R
et
urn
s an array of display mode options.
*
G
ets an array of display mode options.
*
* @param string $display_type
* The display type to be retrieved. It can be "view_mode" or "form_mode".
...
...
core/lib/Drupal/Core/Entity/EntityManagerInterface.php
View file @
71711656
...
...
@@ -118,7 +118,7 @@ public function getFieldStorageDefinitions($entity_type_id);
public
function
getLastInstalledFieldStorageDefinitions
(
$entity_type_id
);
/**
*
R
et
urn
s a lightweight map of fields across bundles.
*
G
ets a lightweight map of fields across bundles.
*
* @return array
* An array keyed by entity type. Each value is an array which keys are
...
...
@@ -129,7 +129,7 @@ public function getLastInstalledFieldStorageDefinitions($entity_type_id);
public
function
getFieldMap
();
/**
*
R
et
urn
s a lightweight map of fields across bundles filtered by field type.
*
G
ets a lightweight map of fields across bundles filtered by field type.
*
* @param string $field_type
* The field type to filter by.
...
...
@@ -280,7 +280,7 @@ public function getHandler($entity_type, $handler_type);
public
function
createHandlerInstance
(
$class
,
EntityTypeInterface
$definition
=
null
);
/**
* Get the bundle info of an entity type.
* Get
s
the bundle info of an entity type.
*
* @param string $entity_type
* The entity type.
...
...
@@ -291,7 +291,7 @@ public function createHandlerInstance($class, EntityTypeInterface $definition =
public
function
getBundleInfo
(
$entity_type
);
/**
*
R
et
rieve
s the "extra fields" for a bundle.
*
G
ets the "extra fields" for a bundle.
*
* @param string $entity_type_id
* The entity type ID.
...
...
@@ -320,7 +320,7 @@ public function getBundleInfo($entity_type);
public
function
getExtraFields
(
$entity_type_id
,
$bundle
);
/**
*
R
et
urn
s the entity translation to be used in the given context.
*
G
ets the entity translation to be used in the given context.
*
* This will check whether a translation for the desired language is available
* and if not, it will fall back to the most appropriate translation based on
...
...
@@ -350,7 +350,7 @@ public function getTranslationFromContext(EntityInterface $entity, $langcode = N
public
function
getDefinition
(
$entity_type_id
,
$exception_on_invalid
=
TRUE
);
/**
*
R
et
urn
s the entity type definition in its most recently installed state.
*
G
ets the entity type definition in its most recently installed state.
*
* During the application lifetime, entity type definitions can change. For
* example, updated code can be deployed. The getDefinition() method will
...
...
@@ -389,7 +389,7 @@ public function getLastInstalledDefinition($entity_type_id);
public
function
getDefinitions
();
/**
*
R
et
urn
s the entity view mode info for all entity types.
*
G
ets the entity view mode info for all entity types.
*
* @return array
* The view mode info for all entity types.
...
...
@@ -397,7 +397,7 @@ public function getDefinitions();
public
function
getAllViewModes
();
/**
*
R
et
urn
s the entity view mode info for a specific entity type.
*
G
ets the entity view mode info for a specific entity type.
*
* @param string $entity_type_id
* The entity type whose view mode info should be returned.
...
...
@@ -408,7 +408,7 @@ public function getAllViewModes();
public
function
getViewModes
(
$entity_type_id
);
/**
*
R
et
urn
s the entity form mode info for all entity types.
*
G
ets the entity form mode info for all entity types.
*
* @return array
* The form mode info for all entity types.
...
...
@@ -416,7 +416,7 @@ public function getViewModes($entity_type_id);
public
function
getAllFormModes
();
/**
*
R
et
urn
s the entity form mode info for a specific entity type.
*
G
ets the entity form mode info for a specific entity type.
*
* @param string $entity_type_id
* The entity type whose form mode info should be returned.
...
...
@@ -427,7 +427,7 @@ public function getAllFormModes();
public
function
getFormModes
(
$entity_type_id
);
/**
*
R
et
urn
s an array of view mode options.
*
G
ets an array of view mode options.
*
* @param string $entity_type_id
* The entity type whose view mode options should be returned.
...
...
@@ -440,7 +440,7 @@ public function getFormModes($entity_type_id);
public
function
getViewModeOptions
(
$entity_type_id
,
$include_disabled
=
FALSE
);
/**
*
R
et
urn
s an array of form mode options.
*
G
ets an array of form mode options.
*
* @param string $entity_type_id
* The entity type whose form mode options should be returned.
...
...
@@ -492,7 +492,7 @@ public function loadEntityByUuid($entity_type_id, $uuid);
public
function
loadEntityByConfigTarget
(
$entity_type_id
,
$target
);
/**
*
R
et
urn
s the entity type ID based on the class that is called on.
*
G
ets the entity type ID based on the class that is called on.
*
* Compares the class this is called on against the known entity classes
* and returns the entity type ID of a direct match or a subclass as fallback,
...
...
core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionInterface.php
View file @
71711656
...
...
@@ -23,7 +23,7 @@
interface
SelectionInterface
extends
PluginFormInterface
{
/**
*
R
et
urns a
list of referenceable entities.
*
G
et
s the
list of referenceable entities.
*
* @return array
* A nested array of entities, the first level is keyed by the
...
...
core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionPluginManagerInterface.php
View file @
71711656
...
...
@@ -30,7 +30,7 @@ interface SelectionPluginManagerInterface extends PluginManagerInterface {
public
function
getPluginId
(
$target_type
,
$base_plugin_id
);
/**
*
R
et
urns
selection plugins that can reference a specific entity type.
*
G
et
s the
selection plugins that can reference a specific entity type.
*
* @param string $entity_type_id
* A Drupal entity type ID.
...
...
core/lib/Drupal/Core/Entity/EntityResolverManager.php
View file @
71711656
...
...
@@ -217,7 +217,7 @@ public function setRouteOptions(Route $route) {
}
/**
*
R
et
urns a
list of all entity types.
*
G
et
s the
list of all entity types.
*
* @return \Drupal\Core\Entity\EntityTypeInterface[]
*/
...
...
core/lib/Drupal/Core/Entity/EntityStorageInterface.php
View file @
71711656
...
...
@@ -148,7 +148,7 @@ public function delete(array $entities);
public
function
save
(
EntityInterface
$entity
);
/**
*
R
et
urn
s an entity query instance.
*
G
ets an entity query instance.