public function WebhookConfigListBuilder::buildOperations in Webhooks 8
Builds a renderable list of operation links for the entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity on which the linked operations will be performed.
Return value
array A renderable array of operation links.
Overrides EntityListBuilder::buildOperations
See also
\Drupal\Core\Entity\EntityListBuilder::buildRow()
File
- src/
WebhookConfigListBuilder.php, line 49
Class
- WebhookConfigListBuilder
- Provides a listing of Webhook entities.
Namespace
Drupal\webhooksCode
public function buildOperations(EntityInterface $entity) {
return [
'#type' => 'operations',
'#links' => $this
->getOperations($entity),
];
}