function SaveEntity::access
Same name in other branches
- 9 core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php \Drupal\action_test\Plugin\Action\SaveEntity::access()
- 10 core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php \Drupal\action_test\Plugin\Action\SaveEntity::access()
- 11.x core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php \Drupal\action_test\Plugin\Action\SaveEntity::access()
Overrides ActionInterface::access
File
-
core/
modules/ system/ tests/ modules/ action_test/ src/ Plugin/ Action/ SaveEntity.php, line 29
Class
- SaveEntity
- Provides an operation to save user entities.
Namespace
Drupal\action_test\Plugin\ActionCode
public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
/** @var \Drupal\Core\Entity\EntityInterface $object */
return $object->access('update', $account, $return_as_object);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.