You are here

protected function UrlEmbedHelperTrait::moduleHandler in URL Embed 8

Returns the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface The module handler.

File

src/UrlEmbedHelperTrait.php, line 42
Contains Drupal\url_embed\UrlEmbedHelperTrait.

Class

UrlEmbedHelperTrait
Wrapper methods for URL embedding.

Namespace

Drupal\url_embed

Code

protected function moduleHandler() {
  if (!isset($this->moduleHandler)) {
    $this->moduleHandler = \Drupal::moduleHandler();
  }
  return $this->moduleHandler;
}