Drupal 8  8.0.2
ConfigTranslationFieldListBuilder Class Reference
Inheritance diagram for ConfigTranslationFieldListBuilder:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityManagerInterface $entity_manager)
 
 setMapperDefinition ($mapper_definition)
 
 load ()
 
 getFilterLabels ()
 
 buildRow (EntityInterface $entity)
 
 buildHeader ()
 
 displayBundle ()
 
 sortRows ($a, $b)
 
- Public Member Functions inherited from ConfigTranslationEntityListBuilder
 render ()
 
 buildRow (EntityInterface $entity)
 
 buildHeader ()
 
 getOperations (EntityInterface $entity)
 
 sortRows ($a, $b)
 
 setMapperDefinition ($mapper_definition)
 
- Public Member Functions inherited from ConfigEntityListBuilder
 load ()
 
- Public Member Functions inherited from EntityListBuilder
 __construct (EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 
 getStorage ()
 
 load ()
 
 getOperations (EntityInterface $entity)
 
 buildHeader ()
 
 buildRow (EntityInterface $entity)
 
 buildOperations (EntityInterface $entity)
 
 render ()
 
- Public Member Functions inherited from EntityHandlerBase
 setModuleHandler (ModuleHandlerInterface $module_handler)
 

Static Public Member Functions

static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 
- Static Public Member Functions inherited from EntityListBuilder
static createInstance (ContainerInterface $container, EntityTypeInterface $entity_type)
 

Protected Attributes

 $baseEntityType = ''
 
 $baseEntityInfo = array()
 
 $baseEntityBundles = array()
 
 $entityManager
 
- Protected Attributes inherited from EntityListBuilder
 $storage
 
 $entityTypeId
 
 $entityType
 
 $limit = 50
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Additional Inherited Members

- Protected Member Functions inherited from ConfigTranslationEntityListBuilder
 getFilterLabels ()
 
 sortRowsMultiple ($a, $b, $keys)
 
- Protected Member Functions inherited from EntityListBuilder
 getEntityIds ()
 
 getLabel (EntityInterface $entity)
 
 getDefaultOperations (EntityInterface $entity)
 
 getTitle ()
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 

Detailed Description

Defines the config translation list builder for field entities.

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
EntityStorageInterface  $storage,
EntityManagerInterface  $entity_manager 
)

Constructs a new ConfigTranslationFieldListBuilder object.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Entity\EntityStorageInterface$storageThe entity storage class.
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

buildHeader ( )

{}

References ConfigTranslationFieldListBuilder\displayBundle(), and t().

Here is the call graph for this function:

buildRow ( EntityInterface  $entity)

{}

References ConfigTranslationFieldListBuilder\displayBundle(), and EntityInterface\label().

Here is the call graph for this function:

static createInstance ( ContainerInterface  $container,
EntityTypeInterface  $entity_type 
)
static

{Instantiates a new instance of this entity handler.This is a factory method that returns a new instance of this object. The factory should pass any needed dependencies into the constructor of this object, but not the container itself. Every call to this method must return a new instance of this object; that is, it may not implement a singleton.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe service container this object should use.
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
Returns
static A new instance of the entity handler.
}

Implements EntityHandlerInterface.

References EntityTypeInterface\id().

Here is the call graph for this function:

displayBundle ( )

Controls the visibility of the bundle column on field list pages.

Returns
bool Whenever the bundle is displayed or not.

Referenced by ConfigTranslationFieldListBuilder\buildHeader(), and ConfigTranslationFieldListBuilder\buildRow().

Here is the caller graph for this function:

getFilterLabels ( )

{}

References Unicode\strtolower(), and t().

Here is the call graph for this function:

load ( )

{Loads entities of this type from storage for listing.This allows the implementation to manipulate the listing, like filtering or sorting the loaded entities.

Returns
[] An array of entities implementing .
}

Implements EntityListBuilderInterface.

References Drupal\entityQuery().

Here is the call graph for this function:

setMapperDefinition (   $mapper_definition)

{Sets the config translation mapper definition.

Parameters
mixed$mapper_definitionThe plugin definition of the config translation mapper.
Returns
$this
}

Implements ConfigTranslationEntityListBuilderInterface.

References Drupal\entityManager().

Here is the call graph for this function:

sortRows (   $a,
  $b 
)

{Sorts an array by value.

Parameters
array$aFirst item for comparison.
array$bSecond item for comparison.
Returns
int The comparison result for uasort().
}

Implements ConfigTranslationEntityListBuilderInterface.

References ConfigTranslationEntityListBuilder\sortRowsMultiple().

Here is the call graph for this function:


The documentation for this class was generated from the following file: