class YamlFormElement in YAML Form 8
Same name in this branch
- 8 src/Annotation/YamlFormElement.php \Drupal\yamlform\Annotation\YamlFormElement
- 8 src/Plugin/YamlFormElement/YamlFormElement.php \Drupal\yamlform\Plugin\YamlFormElement\YamlFormElement
Defines a form element annotation object.
Plugin Namespace: Plugin\YamlFormElement.
For a working example, see \Drupal\yamlform\Plugin\YamlFormElement\Email
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\yamlform\Annotation\YamlFormElement
Expanded class hierarchy of YamlFormElement
See also
hook_yamlform_element_info_alter()
\Drupal\yamlform\YamlFormElementInterface
\Drupal\yamlform\YamlFormElementBase
\Drupal\yamlform\YamlFormElementManager
\Drupal\yamlform\YamlFormElementManagerInterface
70 classes are annotated with YamlFormElement
- Captcha in src/
Plugin/ YamlFormElement/ Captcha.php - Provides a 'captcha' element.
- Checkbox in src/
Plugin/ YamlFormElement/ Checkbox.php - Provides a 'checkbox' element.
- Checkboxes in src/
Plugin/ YamlFormElement/ Checkboxes.php - Provides a 'checkboxes' element.
- Color in src/
Plugin/ YamlFormElement/ Color.php - Provides a 'color' element.
- Container in src/
Plugin/ YamlFormElement/ Container.php - Provides a 'container' element.
File
- src/
Annotation/ YamlFormElement.php, line 24
Namespace
Drupal\yamlform\AnnotationView source
class YamlFormElement extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* URL to the element's API documentation.
*
* @var string
*/
public $api;
/**
* The human-readable name of the form element.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* The category in the admin UI where the form will be listed.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $category = '';
/**
* Flag that defines hidden element.
*
* @var bool
*/
public $hidden = FALSE;
/**
* Flag that defines multiline element.
*
* @var bool
*/
public $multiline = FALSE;
/**
* Flag that defines multiple (value) element.
*
* @var bool
*/
public $multiple = FALSE;
/**
* Flag that defines composite element.
*
* @var bool
*/
public $composite = FALSE;
/**
* Flag that defines if #states wrapper should applied be to the element.
*
* @var bool
*/
public $states_wrapper = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
YamlFormElement:: |
public | property | URL to the element's API documentation. | |
YamlFormElement:: |
public | property | The category in the admin UI where the form will be listed. | |
YamlFormElement:: |
public | property | Flag that defines composite element. | |
YamlFormElement:: |
public | property | Flag that defines hidden element. | |
YamlFormElement:: |
public | property | The plugin ID. | |
YamlFormElement:: |
public | property | The human-readable name of the form element. | |
YamlFormElement:: |
public | property | Flag that defines multiline element. | |
YamlFormElement:: |
public | property | Flag that defines multiple (value) element. | |
YamlFormElement:: |
public | property | Flag that defines if #states wrapper should applied be to the element. |