Drupal 8  8.0.2
ActionListBuilder Class Reference
Inheritance diagram for ActionListBuilder:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, EntityStorageInterface $storage, ActionManager $action_manager)
 
 load ()
 
 buildRow (EntityInterface $entity)
 
 buildHeader ()
 
 getDefaultOperations (EntityInterface $entity)
 
 render ()
 
- 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

 $hasConfigurableActions = FALSE
 
 $actionManager
 
- Protected Attributes inherited from EntityListBuilder
 $storage
 
 $entityTypeId
 
 $entityType
 
 $limit = 50
 
- Protected Attributes inherited from EntityHandlerBase
 $moduleHandler
 

Additional Inherited Members

- Protected Member Functions inherited from EntityListBuilder
 getEntityIds ()
 
 getLabel (EntityInterface $entity)
 
 getDefaultOperations (EntityInterface $entity)
 
 getTitle ()
 
- Protected Member Functions inherited from EntityHandlerBase
 moduleHandler ()
 

Detailed Description

Defines a class to build a listing of action entities.

See Also
action_entity_info()

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
EntityStorageInterface  $storage,
ActionManager  $action_manager 
)

Constructs a new ActionListBuilder object.

Parameters
\Drupal\Core\Entity\EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Entity\EntityStorageInterface$storageThe action storage.
\Drupal\Core\Action\ActionManager$action_managerThe action plugin manager.

Member Function Documentation

buildHeader ( )

{}

References t().

Here is the call graph for this function:

buildRow ( EntityInterface  $entity)

{}

References 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\get(), and EntityTypeInterface\id().

Here is the call graph for this function:

getDefaultOperations ( EntityInterface  $entity)

{}

References 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.

render ( )

{Builds a listing of entities for the given entity type.

Returns
array A render array as expected by drupal_render().
}

Implements EntityListBuilderInterface.

References Drupal\formBuilder(), and t().

Here is the call graph for this function:


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