function EntityListBuilder::ensureDestination
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::ensureDestination()
- 10 core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::ensureDestination()
- 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::ensureDestination()
Ensures that a destination is present on the given URL.
Parameters
\Drupal\Core\Url $url: The URL object to which the destination should be added.
Return value
\Drupal\Core\Url The updated URL object.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php, line 247
Class
- EntityListBuilder
- Defines a generic implementation to build a listing of entities.
Namespace
Drupal\Core\EntityCode
protected function ensureDestination(Url $url) {
return $url->mergeOptions([
'query' => $this->getRedirectDestination()
->getAsArray(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.