You are here

public function BBBNodeType::setId in BigBlueButton 8

Overrides BBBNodeTypeInterface::setId

File

modules/bbb_node/src/Entity/BBBNodeType.php, line 89

Class

BBBNodeType
Defines the BBBNodeType entity.

Namespace

Drupal\bbb_node\Entity

Code

public function setId($value) {
  $entity = $this
    ->entityTypeManager()
    ->getStorage('bbb_node_type')
    ->load($value);
  if (empty($entity)) {
    $this->id = $value;
    return TRUE;
  }
  return FALSE;
}