public function RequestPath::buildConfigurationForm in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/src/Plugin/Condition/RequestPath.php \Drupal\system\Plugin\Condition\RequestPath::buildConfigurationForm()
- 9 core/modules/system/src/Plugin/Condition/RequestPath.php \Drupal\system\Plugin\Condition\RequestPath::buildConfigurationForm()
File
- core/
modules/ system/ src/ Plugin/ Condition/ RequestPath.php, line 102
Class
- RequestPath
- Provides a 'Request Path' condition.
Namespace
Drupal\system\Plugin\ConditionCode
public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
$form['pages'] = [
'#type' => 'textarea',
'#title' => $this
->t('Pages'),
'#default_value' => $this->configuration['pages'],
'#description' => $this
->t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. An example path is %user-wildcard for every user page. %front is the front page.", [
'%user-wildcard' => '/user/*',
'%front' => '<front>',
]),
];
return parent::buildConfigurationForm($form, $form_state);
}