8.2.x EntityType.php public EntityType::setAccessClass($class)
8.0.x EntityType.php public EntityType::setAccessClass($class)
8.1.x EntityType.php public EntityType::setAccessClass($class)
8.3.x EntityType.php 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;
}