You are here

public function WebformNodeReferencesListController::buildOperations in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 327

Class

WebformNodeReferencesListController
Defines a controller for webform node references.

Namespace

Drupal\webform_node\Controller

Code

public function buildOperations(EntityInterface $entity) {
  $build = [
    '#type' => 'operations',
    '#links' => $this
      ->getOperations($entity),
    '#prefix' => '<div class="webform-dropbutton">',
    '#suffix' => '</div>',
  ];
  return $build;
}