You are here

public function RulesComponentListBuilder::buildOperations in Rules 8.3

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/Controller/RulesComponentListBuilder.php, line 105

Class

RulesComponentListBuilder
Defines a class to build a listing of RulesComponentConfig entities.

Namespace

Drupal\rules\Controller

Code

public function buildOperations(EntityInterface $entity) {
  $build = parent::buildOperations($entity);
  uasort($build['#links'], 'Drupal\\Component\\Utility\\SortArray::sortByWeightElement');
  return $build;
}