public function OrganizationListBuilder::render in CRM Core 8
Same name and namespace in other branches
- 8.3 modules/crm_core_contact/src/OrganizationListBuilder.php \Drupal\crm_core_contact\OrganizationListBuilder::render()
- 8.2 modules/crm_core_contact/src/OrganizationListBuilder.php \Drupal\crm_core_contact\OrganizationListBuilder::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/ OrganizationListBuilder.php, line 101
Class
- OrganizationListBuilder
- Class OrganizationListBuilder.
Namespace
Drupal\crm_core_contactCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('There are no organizations available. Add one now.');
return $build;
}