function BreakpointManager::getDiscovery

Same name in other branches
  1. 9 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::getDiscovery()
  2. 10 core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::getDiscovery()
  3. 11.x core/modules/breakpoint/src/BreakpointManager.php \Drupal\breakpoint\BreakpointManager::getDiscovery()

Overrides DefaultPluginManager::getDiscovery

File

core/modules/breakpoint/src/BreakpointManager.php, line 115

Class

BreakpointManager
Defines a breakpoint plugin manager to deal with breakpoints.

Namespace

Drupal\breakpoint

Code

protected function getDiscovery() {
    if (!isset($this->discovery)) {
        $this->discovery = new YamlDiscovery('breakpoints', $this->moduleHandler
            ->getModuleDirectories() + $this->themeHandler
            ->getThemeDirectories());
        $this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
    }
    return $this->discovery;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.