getConfigTypedData example


  protected $typedConfigManager;

  /** * {@inheritdoc} */
  public function get($property_name) {
    if (!isset($this->entity)) {
      throw new MissingDataException("Unable to get property $property_name as no entity has been provided.");
    }
    return $this->getConfigTypedData()->get($property_name);
  }

  /** * {@inheritdoc} */
  public function set($property_name$value$notify = TRUE) {
    if (!isset($this->entity)) {
      throw new MissingDataException("Unable to set property $property_name as no entity has been provided.");
    }
    $this->entity->set($property_name$value$notify);
    return $this;
  }
Home | Imprint | This part of the site doesn't use cookies.