getConfigName example


  protected function getConfigName() {
    return 'layout_builder_test.' . $this->getStorageType() . '.' . $this->getStorageId();
  }

  /** * {@inheritdoc} */
  public function getSections() {
    if (is_null($this->sections)) {
      $sections = $this->configFactory->get($this->getConfigName())->get('sections') ?: [];
      $this->setSections(array_map([Section::class, 'fromArray']$sections));
    }
    return $this->sections;
  }

  /** * {@inheritdoc} */
  protected function setSections(array $sections) {
    $this->sections = array_values($sections);
    return $this;
  }
Home | Imprint | This part of the site doesn't use cookies.