function DeleteAction::access
Same name in other branches
- 9 core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::access()
- 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::access()
- 11.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::access()
Overrides ActionInterface::access
File
-
core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ DeleteAction.php, line 97
Class
- DeleteAction
- Redirects to an entity deletion form.
Namespace
Drupal\Core\Action\Plugin\ActionCode
public function access($object, ?AccountInterface $account = NULL, $return_as_object = FALSE) {
return $object->access('delete', $account, $return_as_object);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.