YamlDirectoryDiscovery

Discovers multiple YAML files in a set of directories. Hierarchy class \Drupal\Component\Discovery\YamlDirectoryDiscovery implements DiscoverableInterface File core/lib/Drupal/Component/Discovery/YamlDirectoryDiscovery.php, line 13 Namespace Drupal\Component\Discovery Members Name Modifiers Type Description YamlDirectoryDiscovery::$directories protected property An array of directories to scan, keyed by the provider. YamlDirectoryDiscovery::$fileCacheKeySuffix protec

Yaml::getSerializer

protected static Yaml::getSerializer() Determines which implementation to use for parsing YAML. Overrides Yaml::getSerializer File core/lib/Drupal/Core/Serialization/Yaml.php, line 18 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Core\Serialization Code protected static function getSerializer() { // Allow settings.php to override the YAML serializer. if (!isset(static::$serializer) && $class = Settings::get('yaml_parser_class')) { stati

Yaml::getSerializer

protected static Yaml::getSerializer() Determines which implementation to use for parsing YAML. File core/lib/Drupal/Component/Serialization/Yaml.php, line 48 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code protected static function getSerializer() { if (!isset(static::$serializer)) { // Use the PECL YAML extension if it is available. It has better // performance for file reads and is YAML compliant. if (extension_lo

Yaml::getFileExtension

public static Yaml::getFileExtension() Gets the file extension for this serialization format. Return value string The file extension, without leading dot. Overrides SerializationInterface::getFileExtension File core/lib/Drupal/Component/Serialization/Yaml.php, line 41 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function getFileExtension() { return 'yml'; }

Yaml::encode

public static Yaml::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/Yaml.php, line 22 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function encode($data) { // Instead of using \Drupal\Component\Serialization\Yaml::getSerializer(), //

Yaml::decode

public static Yaml::decode($raw) Decodes data from the serialization format. Parameters string $raw: The raw data string to decode. Return value mixed The decoded data. Overrides SerializationInterface::decode File core/lib/Drupal/Component/Serialization/Yaml.php, line 33 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code public static function decode($raw) { $serializer = static::getSerializer(); return $serializer::decode($raw

Yaml::$serializer

The YAML implementation to use. Type: \Drupal\Component\Serialization\SerializationInterface File core/lib/Drupal/Component/Serialization/Yaml.php, line 17 Class Yaml Provides a YAML serialization implementation. Namespace Drupal\Component\Serialization Code protected static $serializer;

Yaml

Provides a YAML serialization implementation. Proxy implementation that will choose the best library based on availability. Hierarchy class \Drupal\Component\Serialization\Yaml implements SerializationInterface File core/lib/Drupal/Component/Serialization/Yaml.php, line 10 Namespace Drupal\Component\Serialization Members Name Modifiers Type Description Yaml::$serializer protected static property The YAML implementation to use. Yaml::decode public static function

Yaml

Provides a YAML serialization implementation. Allow settings to override the YAML implementation resolution. Hierarchy class \Drupal\Component\Serialization\Yaml implements SerializationInterfaceclass \Drupal\Core\Serialization\Yaml File core/lib/Drupal/Core/Serialization/Yaml.php, line 13 Namespace Drupal\Core\Serialization Members Name Modifiers Type Description Yaml::$serializer protected static property The YAML implementation to use. Yaml::decode public static

Xss::split

protected static Xss::split($string, $html_tags, $class) Processes an HTML tag. Parameters string $string: The HTML tag to process. array $html_tags: An array where the keys are the allowed tags and the values are not used. string $class: The called class. This method is called from an anonymous function which breaks late static binding. See https://bugs.php.net/bug.php?id=66622 for more information. Return value string If the element isn't allowed, an empty string. Otherwise, the cleaned up