YamlFileLoader::$container

Type: \Drupal\Core\DependencyInjection\ContainerBuilder $container File core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php, line 36 Class YamlFileLoader YamlFileLoader loads YAML files service definitions. Namespace Drupal\Core\DependencyInjection Code protected $container;

YamlFileLoader

YamlFileLoader loads YAML files service definitions. Drupal does not use Symfony's Config component, and Symfony's dependency on it cannot be removed easily. Therefore, this is a partial but mostly literal copy of upstream, which does not depend on the Config component. NOTE: 98% of this code is a literal copy of Symfony's YamlFileLoader. This file does NOT follow Drupal coding standards, so as to simplify future synchronizations. Hierarchy class \Drupal\Core\DependencyInjection\YamlFileLoader

YamlDiscovery::__construct

public YamlDiscovery::__construct($name, array $directories) Constructs a YamlDiscovery object. Parameters string $name: The base filename to look for in each directory. The format will be $provider.$name.yml. array $directories: An array of directories to scan, keyed by the provider. File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 36 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code publ

YamlDiscovery::findFiles

protected YamlDiscovery::findFiles() Returns an array of file paths, keyed by provider. Return value array File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 88 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected function findFiles() { $files = array(); foreach ($this->directories as $provider => $directory) { $file = $directory . '/' . $provider . '.' . $this->name

YamlDiscovery::findAll

public YamlDiscovery::findAll() Returns an array of discoverable items. Return value array An array of discovered data keyed by provider. Throws \Drupal\Component\Discovery\DiscoveryException Exception thrown if there is a problem during discovery. Overrides DiscoverableInterface::findAll File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 44 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code

YamlDiscovery::decode

protected YamlDiscovery::decode($file) Decode a YAML file. Parameters string $file: Yaml file path. Return value array Overrides YamlDiscovery::decode File core/lib/Drupal/Core/Discovery/YamlDiscovery.php, line 18 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Core\Discovery Code protected function decode($file) { return Yaml::decode(file_get_contents($file)) ? : []; }

YamlDiscovery::decode

protected YamlDiscovery::decode($file) Decode a YAML file. Parameters string $file: Yaml file path. Return value array File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 79 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected function decode($file) { return Yaml::decode(file_get_contents($file)) ? : []; }

YamlDiscovery::$name

The base filename to look for in each directory. Type: string File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 18 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected $name;

YamlDiscovery::$directories

An array of directories to scan, keyed by the provider. Type: array File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 25 Class YamlDiscovery Provides discovery for YAML files within a given set of directories. Namespace Drupal\Component\Discovery Code protected $directories = array();

YamlDiscovery

Provides discovery for YAML files within a given set of directories. Hierarchy class \Drupal\Component\Discovery\YamlDiscovery implements DiscoverableInterface File core/lib/Drupal/Component/Discovery/YamlDiscovery.php, line 11 Namespace Drupal\Component\Discovery Members Name Modifiers Type Description YamlDiscovery::$directories protected property An array of directories to scan, keyed by the provider. YamlDiscovery::$name protected property The base filename t