Drupal 8  8.0.2
ImageStyleListBuilder Class Reference
Inheritance diagram for ImageStyleListBuilder:

Public Member Functions

 __construct (EntityTypeInterface $entity_type, EntityStorageInterface $image_style_storage, UrlGeneratorInterface $url_generator)
 
 buildHeader ()
 
 buildRow (EntityInterface $entity)
 
 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

 $urlGenerator
 
- 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 image style entities.

See Also

Constructor & Destructor Documentation

__construct ( EntityTypeInterface  $entity_type,
EntityStorageInterface  $image_style_storage,
UrlGeneratorInterface  $url_generator 
)

Constructs a new ImageStyleListBuilder object.

Parameters
EntityTypeInterface$entity_typeThe entity type definition.
\Drupal\Core\Entity\EntityStorageInterface$image_style_storageThe image style entity storage class.
\Drupal\Core\Routing\UrlGeneratorInterface$url_generatorThe URL generator.

References Drupal\urlGenerator().

Here is the call graph for this function:

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(), and EntityInterface\urlInfo().

Here is the call graph for this function:

render ( )

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

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

Implements EntityListBuilderInterface.

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

Here is the call graph for this function:


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