function PathElement::getInfo
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Element/PathElement.php \Drupal\Core\Render\Element\PathElement::getInfo()
- 10 core/lib/Drupal/Core/Render/Element/PathElement.php \Drupal\Core\Render\Element\PathElement::getInfo()
- 11.x core/lib/Drupal/Core/Render/Element/PathElement.php \Drupal\Core\Render\Element\PathElement::getInfo()
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 = get_class($this);
$info['#validate_path'] = TRUE;
$info['#convert_path'] = self::CONVERT_ROUTE;
$info['#element_validate'] = [
[
$class,
'validateMatchedPath',
],
];
return $info;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.