You are here

public function WebformEntityListBuilder::buildOperations in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/WebformEntityListBuilder.php \Drupal\webform\WebformEntityListBuilder::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()

File

src/WebformEntityListBuilder.php, line 381

Class

WebformEntityListBuilder
Defines a class to build a listing of webform entities.

Namespace

Drupal\webform

Code

public function buildOperations(EntityInterface $entity) {
  return parent::buildOperations($entity) + [
    '#prefix' => '<div class="webform-dropbutton">',
    '#suffix' => '</div>',
  ];
}