Loading core/lib/Drupal/Core/DrupalKernel.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ * also deals with the registration of service providers. It allows registered * service providers to add their services to the container. Core provides the * CoreServiceProvider, which, in addition to registering any core services that * cannot be registered in the core.services.yaml file, adds any compiler passes * cannot be registered in the core.services.yml file, adds any compiler passes * needed by core, e.g. for processing tagged services. Each module can add its * own service provider, i.e. a class implementing * Drupal\Core\DependencyInjection\ServiceProvider, to register services to the Loading core/lib/Drupal/Core/Template/TwigEnvironment.php +2 −2 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ public function __construct($root, CacheBackendInterface $cache, $twig_extension */ public function compileSource(Source $source): string { // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // "serialization.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. $frontMatter = FrontMatter::create($source->getCode(), Yaml::class); Loading Loading @@ -170,7 +170,7 @@ public function getTemplateMetadata(string $name): array { $source = $loader->getSourceContext($name); // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // "serialization.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. try { Loading core/modules/help/src/HelpTopicTwigLoader.php +3 −3 Original line number Diff line number Diff line Loading @@ -73,9 +73,9 @@ public function getSourceContext(string $name): Source { $contents = file_get_contents($path); try { // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. // "serialization.yaml" service. This allows the core serializer to // utilize core related functionality which isn't available as the // standalone component based serializer. $front_matter = new FrontMatter($contents, Yaml::class); // Reconstruct the content if there is front matter data detected. Prepend Loading Loading
core/lib/Drupal/Core/DrupalKernel.php +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ * also deals with the registration of service providers. It allows registered * service providers to add their services to the container. Core provides the * CoreServiceProvider, which, in addition to registering any core services that * cannot be registered in the core.services.yaml file, adds any compiler passes * cannot be registered in the core.services.yml file, adds any compiler passes * needed by core, e.g. for processing tagged services. Each module can add its * own service provider, i.e. a class implementing * Drupal\Core\DependencyInjection\ServiceProvider, to register services to the Loading
core/lib/Drupal/Core/Template/TwigEnvironment.php +2 −2 Original line number Diff line number Diff line Loading @@ -107,7 +107,7 @@ public function __construct($root, CacheBackendInterface $cache, $twig_extension */ public function compileSource(Source $source): string { // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // "serialization.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. $frontMatter = FrontMatter::create($source->getCode(), Yaml::class); Loading Loading @@ -170,7 +170,7 @@ public function getTemplateMetadata(string $name): array { $source = $loader->getSourceContext($name); // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // "serialization.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. try { Loading
core/modules/help/src/HelpTopicTwigLoader.php +3 −3 Original line number Diff line number Diff line Loading @@ -73,9 +73,9 @@ public function getSourceContext(string $name): Source { $contents = file_get_contents($path); try { // Note: always use \Drupal\Core\Serialization\Yaml here instead of the // "serializer.yaml" service. This allows the core serializer to utilize // core related functionality which isn't available as the standalone // component based serializer. // "serialization.yaml" service. This allows the core serializer to // utilize core related functionality which isn't available as the // standalone component based serializer. $front_matter = new FrontMatter($contents, Yaml::class); // Reconstruct the content if there is front matter data detected. Prepend Loading