function TwigExtension::validateProps

Same name in other branches
  1. 10 core/modules/sdc/src/Twig/TwigExtension.php \Drupal\sdc\Twig\TwigExtension::validateProps()

Validates the props in development environments.

Parameters

array $context: The context provided to the component.

string $component_id: The component ID.

Throws

\Drupal\sdc\Exception\InvalidComponentException

File

core/modules/sdc/src/Twig/TwigExtension.php, line 111

Class

TwigExtension
The twig extension so Drupal can recognize the new code.

Namespace

Drupal\sdc\Twig

Code

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.