public function Mapping::get

Implements Drupal\Core\TypedData\ComplexDataInterface::get().

Overrides ComplexDataInterface::get

1 call to Mapping::get()
Mapping::set in drupal/core/lib/Drupal/Core/Config/Schema/Mapping.php
Implements Drupal\Core\TypedData\ComplexDataInterface::set().

File

drupal/core/lib/Drupal/Core/Config/Schema/Mapping.php, line 40
Contains \Drupal\Core\Config\Schema\Mapping.

Class

Mapping
Defines a mapping configuration element.

Namespace

Drupal\Core\Config\Schema

Code

public function get($property_name) {
  $elements = $this
    ->getElements();
  if (isset($elements[$property_name])) {
    return $elements[$property_name];
  }
  else {
    throw new InvalidArgumentException(format_string("The configuration property @key doesn't exist.", array(
      '@key' => $property_name,
    )));
  }
}