protected NodeListBuilder::getDefaultOperations(EntityInterface $entity)
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 EntityListBuilder::getDefaultOperations
File
- core/modules/node/src/NodeListBuilder.php, line 134
Class
- NodeListBuilder
- Defines a class to build a listing of node entities.
Namespace
Drupal\node
Code
1 2 3 4 5 6 7 8 9 | protected function getDefaultOperations(EntityInterface $entity ) { $operations = parent::getDefaultOperations( $entity ); $destination = $this ->redirectDestination->getAsArray(); foreach ( $operations as $key => $operation ) { $operations [ $key ][ 'query' ] = $destination ; } return $operations ; } |
Please login to continue.