public function TypedDiscoveryInterface::getDefinition in Plugin 8.2
Return value
\Drupal\plugin\PluginDefinition\PluginDefinitionInterface|NULL A plugin definition, or NULL if the plugin ID is invalid and $exception_on_invalid is FALSE.
Overrides DiscoveryInterface::getDefinition
File
- src/
PluginDiscovery/ TypedDiscoveryInterface.php, line 22
Class
- TypedDiscoveryInterface
- An interface defining the minimum requirements of building a plugin discovery component.
Namespace
Drupal\plugin\PluginDiscoveryCode
public function getDefinition($plugin_id, $exception_on_invalid = TRUE);