You are here

public function IndividualListBuilder::render in CRM Core 8.2

Same name and namespace in other branches
  1. 8.3 modules/crm_core_contact/src/IndividualListBuilder.php \Drupal\crm_core_contact\IndividualListBuilder::render()
  2. 8 modules/crm_core_contact/src/IndividualListBuilder.php \Drupal\crm_core_contact\IndividualListBuilder::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

modules/crm_core_contact/src/IndividualListBuilder.php, line 95

Class

IndividualListBuilder
List builder for the individual entity.

Namespace

Drupal\crm_core_contact

Code

public function render() {
  $build = parent::render();
  $build['table']['#empty'] = $this
    ->t('There are no individuals available. Add one now.');
  return $build;
}