public EntityType::setAccessClass($class)
Gets the access class.
Parameters
string $class: The class for this entity type's access.
Return value
$this
Overrides EntityTypeInterface::setAccessClass
File
- core/lib/Drupal/Core/Entity/EntityType.php, line 588
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\Entity
Code
public function setAccessClass($class) { $this->handlers['access'] = $class; return $this; }
Please login to continue.