ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
StringFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
27 {
28  protected function rawInput(
29  ElementInterface $element,
30  ElementInterface $context_element,
31  string $condition_value = ''
32  ): FormInput {
33  $super_name = $element->getSuperElement()
34  ->getDefinition()
35  ->name();
36  if ($super_name === 'description') {
37  return $this->ui_factory->textarea('placeholder');
38  }
39  return $this->ui_factory->text('placeholder');
40  }
41 }
rawInput(ElementInterface $element, ElementInterface $context_element, string $condition_value='')
This describes inputs that can be used in forms.
Definition: FormInput.php:31