protected ConstraintManager::getDiscovery()
Gets the plugin discovery.
Return value
\Drupal\Component\Plugin\Discovery\DiscoveryInterface
Overrides DefaultPluginManager::getDiscovery
File
- core/lib/Drupal/Core/Validation/ConstraintManager.php, line 51
Class
- ConstraintManager
- Constraint plugin manager.
Namespace
Drupal\Core\Validation
Code
1 2 3 4 5 6 7 | protected function getDiscovery() { if (!isset( $this ->discovery)) { $this ->discovery = parent::getDiscovery(); $this ->discovery = new StaticDiscoveryDecorator( $this ->discovery, [ $this , 'registerDefinitions' ]); } return $this ->discovery; } |
Please login to continue.