Implements Drupal\Component\Plugin\Discovery\DicoveryInterface::getDefinitions().
Overrides DiscoveryInterface::getDefinitions
public function getDefinitions() {
// Optimize for fast access to definitions if they are already in memory.
if (isset($this->definitions)) {
return $this->definitions;
}
$definitions = $this
->getCachedDefinitions();
if (!isset($definitions)) {
$definitions = $this->decorated
->getDefinitions();
$this
->setCachedDefinitions($definitions);
}
return $definitions;
}