EntityType::setAccessClass

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;
}
doc_Drupal
2016-10-29 09:08:06
Comments
Leave a Comment

Please login to continue.