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