Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PathElement.php

function 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\Element

Code

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal