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

Breadcrumb

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

function BreakpointManager::getDiscovery

Overrides DefaultPluginManager::getDiscovery

File

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

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;
}

API Navigation

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