public function MappedObjectList::render in Salesforce Suite 8.4
Same name and namespace in other branches
- 5.0.x modules/salesforce_mapping_ui/src/MappedObjectList.php \Drupal\salesforce_mapping_ui\MappedObjectList::render()
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_ui/ src/ MappedObjectList.php, line 66
Class
- MappedObjectList
- Provides a list controller for salesforce_mapping entity.
Namespace
Drupal\salesforce_mapping_uiCode
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;
}