function BlockContentRouteProvider::getDeleteFormRoute
Same name and namespace in other branches
- 11.x core/modules/block_content/src/Routing/BlockContentRouteProvider.php \Drupal\block_content\Routing\BlockContentRouteProvider::getDeleteFormRoute()
Overrides AdminHtmlRouteProvider::getDeleteFormRoute
File
-
core/
modules/ block_content/ src/ Routing/ BlockContentRouteProvider.php, line 47
Class
- BlockContentRouteProvider
- Provides HTML routes for block_content entities.
Namespace
Drupal\block_content\RoutingCode
protected function getDeleteFormRoute(EntityTypeInterface $entity_type) {
return parent::getDeleteFormRoute($entity_type)->addRequirements([
'_block_content_reusable' => 'TRUE',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.