public function GathercontentMappingListBuilder::render in GatherContent 8
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
- src/
GathercontentMappingListBuilder.php, line 98
Class
- GathercontentMappingListBuilder
- Provides a listing of GatherContent Mapping entities.
Namespace
Drupal\gathercontentCode
public function render() {
$project_obj = new Project();
$projects = $project_obj
->getProjectObjects();
$temp_obj = new Template();
foreach ($projects as $project) {
$remote_templates = $temp_obj
->getTemplatesObject($project->id);
foreach ($remote_templates as $remote_template) {
$this->templates[$remote_template->id] = $remote_template->updated_at;
}
}
return parent::render();
}