public function ParagraphsTypeListBuilder::getDefaultOperations

File

paragraphs/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;
}