Verified Commit 8d090526 authored by quietone's avatar quietone
Browse files

Issue #3552894 by mollux, smustgrave: Fix typos in comments to...

Issue #3552894 by mollux, smustgrave: Fix typos in comments to core.services.yml and serialization.yaml
parent 5814c7df
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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);
@@ -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 {
+3 −3
Original line number Diff line number Diff line
@@ -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