diff --git a/src/Annotation/WebformElement.php b/src/Annotation/WebformElement.php index bc3ee9c..9514c8e 100644 --- a/src/Annotation/WebformElement.php +++ b/src/Annotation/WebformElement.php @@ -5,6 +5,13 @@ namespace Drupal\webform\Annotation; use Drupal\Component\Annotation\Plugin; /** + * Webform is the module for making forms and surveys in Drupal. + * + * @file + * webform/src/Annotation/WebformElement.php + */ + +/** * Defines a webform element annotation object. * * Plugin Namespace: Plugin\WebformElement. @@ -21,93 +28,95 @@ use Drupal\Component\Annotation\Plugin; * * @Annotation */ -class WebformElement extends Plugin { - - /** - * The plugin ID. - * - * @var string - */ - public $id; - - /** - * URL to the element's API documentation. - * - * @var string - */ - public $api; - - /** - * The element's module dependencies. - * - * @var array - * - * @see webform_webform_element_info_alter() - */ - public $dependencies = []; - - /** - * The human-readable name of the webform element. - * - * @var \Drupal\Core\Annotation\Translation - * - * @ingroup plugin_translatable - */ - public $label; - - /** - * The default key used for new webform element. - * - * @var string - */ - public $default_key = ''; - - /** - * The category in the admin UI where the webform will be listed. - * - * @var \Drupal\Core\Annotation\Translation - * - * @ingroup plugin_translatable - */ - public $category = ''; - - /** - * A brief description of the webform element. - * - * This will be shown when adding or configuring this webform element. - * - * @var \Drupal\Core\Annotation\Translation - * - * @ingroup plugin_translatable - */ - public $description = ''; - - /** - * Flag that defines hidden element. - * - * @var bool - */ - public $hidden = FALSE; - - /** - * Flag that defines multiline element. - * - * @var bool - */ - public $multiline = 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; + +class WebformElement extends Plugin +{ + + /** + * The plugin ID. + * + * @var string + */ + public $id; + + /** + * URL to the element's API documentation. + * + * @var string + */ + public $api; + + /** + * The element's module dependencies. + * + * @var array + * + * @see webform_webform_element_info_alter() + */ + public $dependencies = []; + + /** + * The human-readable name of the webform element. + * + * @var \Drupal\Core\Annotation\Translation + * + * @ingroup plugin_translatable + */ + public $label; + + /** + * The default key used for new webform element. + * + * @var string + */ + public $default_key = ''; + + /** + * The category in the admin UI where the webform will be listed. + * + * @var \Drupal\Core\Annotation\Translation + * + * @ingroup plugin_translatable + */ + public $category = ''; + + /** + * A brief description of the webform element. + * + * This will be shown when adding or configuring this webform element. + * + * @var \Drupal\Core\Annotation\Translation + * + * @ingroup plugin_translatable + */ + public $description = ''; + + /** + * Flag that defines hidden element. + * + * @var bool + */ + public $hidden = false; + + /** + * Flag that defines multiline element. + * + * @var bool + */ + public $multiline = 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; }