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

Breadcrumb

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

function ParserAbstract::getEventsEmitter

Returns the parser's events emitter

Return value

EventsEmitter

File

vendor/mck89/peast/lib/Peast/Syntax/ParserAbstract.php, line 169

Class

ParserAbstract
Base class for parsers.

Namespace

Peast\Syntax

Code

public function getEventsEmitter() {
    if (!$this->eventsEmitter) {
        
        //The event emitter is created here so that it won't exist if not
        
        //necessary
        $this->eventsEmitter = new EventsEmitter();
    }
    return $this->eventsEmitter;
}

API Navigation

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