You are here

public function ParagraphsTypeListBuilder::getDefaultOperations in Paragraphs 8

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

src/Controller/ParagraphsTypeListBuilder.php, line 51

Class

ParagraphsTypeListBuilder
Provides a listing of ParagraphsType.

Namespace

Drupal\paragraphs\Controller

Code

public function getDefaultOperations(EntityInterface $entity) {

  /** @var \Drupal\field\FieldConfigInterface $entity */
  $operations = parent::getDefaultOperations($entity);
  if (isset($operations['edit'])) {
    $operations['edit']['weight'] = 30;
  }
  return $operations;
}