Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CommentsRegistry.php

function CommentsRegistry::onEndParsing

Listener called when parsing process ends

Return value

void

File

vendor/mck89/peast/lib/Peast/Syntax/CommentsRegistry.php, line 181

Class

CommentsRegistry
Comments registry class. Internal class used to manage comments

Namespace

Peast\Syntax

Code

public function onEndParsing() {
    
    //Return if there are no comments to process
    if ($this->registry) {
        
        //Make sure nodes start indices map is sorted
        ksort($this->nodesStartMap);
        
        //Loop all comment groups in the registry
        foreach ($this->registry as $group) {
            $this->findNodeForCommentsGroup($group);
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal