You are here

public function Instances::buildOperations in Smart Date 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()
  2. 3.x modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()
  3. 3.1.x modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()
  4. 3.2.x modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()
  5. 3.3.x modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()
  6. 3.4.x modules/smart_date_recur/src/Controller/Instances.php \Drupal\smart_date_recur\Controller\Instances::buildOperations()

Builds a renderable list of operation links for the entity.

Parameters

array $instance: The entity on which the linked operations will be performed.

Return value

array A renderable array of operation links.

1 call to Instances::buildOperations()
Instances::buildRow in modules/smart_date_recur/src/Controller/Instances.php
Builds a row for an instance in the listing.

File

modules/smart_date_recur/src/Controller/Instances.php, line 227

Class

Instances
Provides listings of instances (with overrides) for a specified rule.

Namespace

Drupal\smart_date_recur\Controller

Code

public function buildOperations(array $instance) {
  $build = [
    '#type' => 'operations',
    '#links' => $this
      ->getOperations($instance),
  ];
  return $build;
}