UserListBuilder::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/user/src/UserListBuilder.php, line 34 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Drupal\user Code protected $dateFormatter;

UserListBuilder::$queryFactory

The entity query factory. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/user/src/UserListBuilder.php, line 27 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Drupal\user Code protected $queryFactory;

UserListBuilder::$redirectDestination

The redirect destination service. Type: \Drupal\Core\Routing\RedirectDestinationInterface File core/modules/user/src/UserListBuilder.php, line 41 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Drupal\user Code protected $redirectDestination;

UserListBuilder::buildHeader

public UserListBuilder::buildHeader() Builds the header row for the entity listing. Return value array A render array structure of header strings. Overrides EntityListBuilder::buildHeader See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/user/src/UserListBuilder.php, line 93 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Drupal\user Code public function buildHeader() { $header = array( 'username' => array(

UserListBuilder::buildRow

public UserListBuilder::buildRow(EntityInterface $entity) Builds a row for an entity in the entity listing. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for this row of the list. Return value array A render array structure of fields for this entity. Overrides EntityListBuilder::buildRow See also \Drupal\Core\Entity\EntityListBuilder::render() File core/modules/user/src/UserListBuilder.php, line 130 Class UserListBuilder Defines a class to build a listing of user en

UserListBuilder::createInstance

public static UserListBuilder::createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) 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\Dependenc

UserListBuilder::getOperations

public UserListBuilder::getOperations(EntityInterface $entity) Provides an array of information to build a list of operation links. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs: title: The localized title of the operation. url: An instance of \Drupal\Core\Url for the operation URL. weight: The weight of

UserListBuilder::load

public UserListBuilder::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. Return value \Drupal\Core\Entity\EntityInterface[] An array of entities implementing \Drupal\Core\Entity\EntityInterface. Overrides EntityListBuilder::load File core/modules/user/src/UserListBuilder.php, line 80 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Dru

UserListBuilder::render

public UserListBuilder::render() Builds the entity listing as renderable array for table.html.twig. @todo Add a link to add a new item to the #empty text. Overrides EntityListBuilder::render File core/modules/user/src/UserListBuilder.php, line 181 Class UserListBuilder Defines a class to build a listing of user entities. Namespace Drupal\user Code public function render() { $build = parent::render(); $build['table']['#empty'] = $this->t('No people available.'); return $build;

UserListBuilder::__construct

public UserListBuilder::__construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory, DateFormatterInterface $date_formatter, RedirectDestinationInterface $redirect_destination) Constructs a new UserListBuilder object. Parameters \Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition. \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The en