function TypedConfigInterface::get

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php \Drupal\Core\Config\Schema\TypedConfigInterface::get()
  2. 10 core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php \Drupal\Core\Config\Schema\TypedConfigInterface::get()
  3. 11.x core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php \Drupal\Core\Config\Schema\TypedConfigInterface::get()

Gets a contained typed configuration element.

Parameters

$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 value

\Drupal\Core\TypedData\TypedDataInterface The property object.

Throws

\InvalidArgumentException If an invalid property name is given.

1 method overrides TypedConfigInterface::get()
ArrayElement::get in core/lib/Drupal/Core/Config/Schema/ArrayElement.php
Gets a contained typed configuration element.

File

core/lib/Drupal/Core/Config/Schema/TypedConfigInterface.php, line 49

Class

TypedConfigInterface
Interface for a typed configuration object that contains multiple elements.

Namespace

Drupal\Core\Config\Schema

Code

public function get($name);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.