public function PathElement::getInfo in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Render/Element/PathElement.php \Drupal\Core\Render\Element\PathElement::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Textfield::getInfo
File
- core/
lib/ Drupal/ Core/ Render/ Element/ PathElement.php, line 36
Class
- PathElement
- Provides a matched path render element.
Namespace
Drupal\Core\Render\ElementCode
public function getInfo() {
$info = parent::getInfo();
$class = static::class;
$info['#validate_path'] = TRUE;
$info['#convert_path'] = self::CONVERT_ROUTE;
$info['#element_validate'] = [
[
$class,
'validateMatchedPath',
],
];
return $info;
}