You are here

public function SkinListBuilder::getDefaultOperations in Skinr 8.2

Gets this list's default operations.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array The array structure is identical to the return value of self::getOperations().

Overrides ConfigEntityListBuilder::getDefaultOperations

File

skinr_ui/src/Controller/SkinListBuilder.php, line 86
Contains \Drupal\skinr_ui\Controller\SkinListBuilder.

Class

SkinListBuilder
Returns responses for devel module routes.

Namespace

Drupal\skinr_ui\Controller

Code

public function getDefaultOperations(EntityInterface $entity) {

  /** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity */
  $operations = parent::getDefaultOperations($entity);

  // Override edit link.
  // @todo
  if (isset($operations['edit'])) {

    // dpm($operations['edit']);
  }
  return $operations;
}