function EntityTypeInterface::setAccessClass
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setAccessClass()
- 8.9.x core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setAccessClass()
- 10 core/lib/Drupal/Core/Entity/EntityTypeInterface.php \Drupal\Core\Entity\EntityTypeInterface::setAccessClass()
Sets the access control handler class.
Parameters
string $class: The class for this entity type's access control handler.
Return value
$this
1 method overrides EntityTypeInterface::setAccessClass()
- EntityType::setAccessClass in core/
lib/ Drupal/ Core/ Entity/ EntityType.php - Sets the access control handler class.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityTypeInterface.php, line 353
Class
- EntityTypeInterface
- Provides an interface for an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
public function setAccessClass($class);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.