public function ParagraphsSetListBuilder::getDefaultOperations in Paragraphs Sets 8
Same name and namespace in other branches
- 8.2 src/Controller/ParagraphsSetListBuilder.php \Drupal\paragraphs_sets\Controller\ParagraphsSetListBuilder::getDefaultOperations()
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/ ParagraphsSetListBuilder.php, line 37
Class
- ParagraphsSetListBuilder
- Provides a listing of ParagraphsSet.
Namespace
Drupal\paragraphs_sets\ControllerCode
public function getDefaultOperations(EntityInterface $entity) {
/** @var \Drupal\field\FieldConfigInterface $entity */
$operations = parent::getDefaultOperations($entity);
if (isset($operations['edit'])) {
$operations['edit']['weight'] = 30;
}
return $operations;
}