public function MappedObjectList::render in Salesforce Suite 8.3
We override ::render() so that we can add our own content above the table. parent::render() is where EntityListBuilder creates the table using our buildHeader() and buildRow() implementations.
Overrides EntityListBuilder::render
File
- modules/
salesforce_mapping/ src/ MappedObjectList.php, line 66
Class
- MappedObjectList
- Provides a list controller for salesforce_mapping entity.
Namespace
Drupal\salesforce_mappingCode
public function render() {
$build['description'] = [
'#markup' => $this
->t('Manage the fields on the <a href="@adminlink">Mappings</a>.', [
'@adminlink' => $this->urlGenerator
->generateFromRoute('entity.salesforce_mapping.list'),
]),
];
$build['table'] = parent::render();
return $build;
}