interface TypedConfigInterface in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php \Drupal\Core\Config\Schema\TypedConfigInterface
Interface for a typed configuration object that contains multiple elements.
A list of typed configuration contains any number of items whose type will depend on the configuration schema but also on the configuration data being parsed.
When implementing this interface which extends Traversable, make sure to list IteratorAggregate or Iterator before this interface in the implements clause.
Hierarchy
- interface \Drupal\Core\TypedData\TypedDataInterface
- interface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Drupal\Core\TypedData\Traversable
- interface \Drupal\Core\Config\Schema\TypedConfigInterface
- interface \Drupal\Core\TypedData\TraversableTypedDataInterface extends \Drupal\Core\TypedData\Traversable
Expanded class hierarchy of TypedConfigInterface
All classes that implement TypedConfigInterface
File
- core/
lib/ Drupal/ Core/ Config/ Schema/ TypedConfigInterface.php, line 22 - Contains \Drupal\Core\Config\Schema\TypedConfigInterface.
Namespace
Drupal\Core\Config\SchemaView source
interface TypedConfigInterface extends TraversableTypedDataInterface {
/**
* Determines whether the data structure is empty.
*
* @return bool
* TRUE if the data structure is empty, FALSE otherwise.
*/
public function isEmpty();
/**
* Gets an array of contained elements.
*
* @return array
* Array of \Drupal\Core\TypedData\TypedDataInterface objects.
*/
public function getElements();
/**
* Gets a contained typed configuration element.
*
* @param $name
* The name of the property to get; e.g., 'title' or 'name'. Nested
* elements can be get using multiple dot delimited names, for example,
* 'page.front'.
*
* @return \Drupal\Core\TypedData\TypedDataInterface
* The property object.
*
* @throws \InvalidArgumentException
* If an invalid property name is given.
*/
public function get($name);
/**
* Returns an array of all property values.
*
* @return array
* An array of property values, keyed by property name.
*/
public function toArray();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TraversableTypedDataInterface:: |
public | function | React to changes to a child property or item. | 5 |
TypedConfigInterface:: |
public | function | Gets a contained typed configuration element. | 1 |
TypedConfigInterface:: |
public | function | Gets an array of contained elements. | 1 |
TypedConfigInterface:: |
public | function | Determines whether the data structure is empty. | 1 |
TypedConfigInterface:: |
public | function | Returns an array of all property values. | 1 |
TypedDataInterface:: |
public | function | Applies the default value. | 2 |
TypedDataInterface:: |
public static | function | Constructs a TypedData object given its definition and context. | 2 |
TypedDataInterface:: |
public | function | Gets a list of validation constraints. | 2 |
TypedDataInterface:: |
public | function | Gets the data definition. | 2 |
TypedDataInterface:: |
public | function | Returns the name of a property or item. | 2 |
TypedDataInterface:: |
public | function | Returns the parent data structure; i.e. either complex data or a list. | 2 |
TypedDataInterface:: |
public | function | Returns the property path of the data. | 2 |
TypedDataInterface:: |
public | function | Returns the root of the typed data tree. | 2 |
TypedDataInterface:: |
public | function | Returns a string representation of the data. | 2 |
TypedDataInterface:: |
public | function | Gets the data value. | 2 |
TypedDataInterface:: |
public | function | Sets the context of a property or item via a context aware parent. | 2 |
TypedDataInterface:: |
public | function | Sets the data value. | 2 |
TypedDataInterface:: |
public | function | Validates the currently set data value. | 2 |