Element.php

Contains \Drupal\Core\Config\Schema\Element.

Namespace

Drupal\Core\Config\Schema

File

drupal/core/lib/Drupal/Core/Config/Schema/Element.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Config\Schema\Element.
 */
namespace Drupal\Core\Config\Schema;

use Drupal\Core\TypedData\TypedData;

/**
 * Defines a generic configuration element.
 */
abstract class Element extends TypedData {

  /**
   * The configuration value.
   *
   * @var mixed
   */
  protected $value;

  /**
   * Create typed config object.
   */
  protected function parseElement($key, $data, $definition) {
    return config_typed()
      ->create($definition, $data, $key, $this);
  }

}

Classes

Namesort descending Description
Element Defines a generic configuration element.