public function MappedObjectList::getOperations in Salesforce Suite 8.3
Provides an array of information to build a list of operation links.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.
Return value
array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs:
- title: The localized title of the operation.
- url: An instance of \Drupal\Core\Url for the operation URL.
- weight: The weight of this operation.
Overrides EntityListBuilder::getOperations
File
- modules/
salesforce_mapping/ src/ MappedObjectList.php, line 117
Class
- MappedObjectList
- Provides a list controller for salesforce_mapping entity.
Namespace
Drupal\salesforce_mappingCode
public function getOperations(EntityInterface $entity) {
$operations['view'] = [
'title' => $this
->t('View'),
'weight' => -100,
'url' => $entity
->urlInfo('canonical'),
];
$operations += parent::getDefaultOperations($entity);
return $operations;
}