traitGet example


    return $content_moderation_state;
  }

  /** * {@inheritdoc} */
  public function get($index) {
    if ($index !== 0) {
      throw new \InvalidArgumentException('An entity can not have multiple moderation states at the same time.');
    }
    return $this->traitGet($index);
  }

  /** * {@inheritdoc} */
  public function onChange($delta) {
    $this->updateModeratedEntity($this->list[$delta]->value);

    parent::onChange($delta);
  }

  
Home | Imprint | This part of the site doesn't use cookies.