function ComponentPluginManager::isValidDefinition
Same name in this branch
- 11.x core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::isValidDefinition()
Same name in other branches
- 10 core/modules/sdc/src/ComponentPluginManager.php \Drupal\sdc\ComponentPluginManager::isValidDefinition()
- 10 core/lib/Drupal/Core/Theme/ComponentPluginManager.php \Drupal\Core\Theme\ComponentPluginManager::isValidDefinition()
Validates the metadata info.
Parameters
array $definition: The component definition.
Return value
bool TRUE if it's valid.
Throws
\Drupal\sdc\Exception\InvalidComponentException
1 call to ComponentPluginManager::isValidDefinition()
- ComponentPluginManager::alterDefinitions in core/
modules/ sdc/ src/ ComponentPluginManager.php - Invokes the hook to alter the definitions if the alter hook is set.
File
-
core/
modules/ sdc/ src/ ComponentPluginManager.php, line 343
Class
- ComponentPluginManager
- Defines a plugin manager to deal with sdc.
Namespace
Drupal\sdcCode
private function isValidDefinition(array $definition) : bool {
return $this->componentValidator
->validateDefinition($definition, $this->shouldEnforceSchemas($definition));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.