protected YamlDirectoryDiscovery::getIdentifier($file, array $data)
Gets the identifier from the data.
string $file: The filename.
array $data: The data from the YAML file.
string The identifier from the data.
protected function getIdentifier($file, array $data) { if (!isset($data[$this->idKey])) { throw new DiscoveryException("The $file contains no data in the identifier key '{$this->idKey}'"); } return $data[$this->idKey]; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Discovery!YamlDirectoryDiscovery.php/function/YamlDirectoryDiscovery::getIdentifier/8.1.x