public function WebformNodeReferencesListController::buildOperations in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_node/src/Controller/WebformNodeReferencesListController.php \Drupal\webform_node\Controller\WebformNodeReferencesListController::buildOperations()
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()
1 call to WebformNodeReferencesListController::buildOperations()
- WebformNodeReferencesListController::buildRow in modules/
webform_node/ src/ Controller/ WebformNodeReferencesListController.php - Builds a row for an entity in the entity listing.
File
- modules/
webform_node/ src/ Controller/ WebformNodeReferencesListController.php, line 281
Class
- WebformNodeReferencesListController
- Defines a controller for webform node references.
Namespace
Drupal\webform_node\ControllerCode
public function buildOperations(EntityInterface $entity) {
$build = [
'#type' => 'operations',
'#links' => $this
->getOperations($entity),
'#prefix' => '<div class="webform-dropbutton">',
'#suffix' => '</div>',
];
return $build;
}