public EntityType::setClass($class)
Sets the class.
string $class: A fully qualified class name.
static
\InvalidArgumentException If the class is invalid.
Overrides PluginDefinitionInterface::setClass
public function setClass($class) { if (!$this->originalClass && $this->class) { // If the original class is currently not set, set it to the current // class, assume that is the original class name. $this->originalClass = $this->class; } $this->class = $class; return $this; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityType.php/function/EntityType::setClass/8.1.x