function ComponentsTwigExtension::validateProps
Validates the props in development environments.
Parameters
array $context: The context provided to the component.
string $component_id: The component ID.
Throws
\Drupal\Core\Render\Component\Exception\InvalidComponentException
File
- 
              core/
lib/ Drupal/ Core/ Template/ ComponentsTwigExtension.php, line 108  
Class
- ComponentsTwigExtension
 - The twig extension so Drupal can recognize the new code.
 
Namespace
Drupal\Core\TemplateCode
public function validateProps(array &$context, string $component_id) : void {
  assert($this->doValidateProps($context, $component_id));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.