
| Current Path : /var/www/html/c12park/web/modules/contrib/webform/src/Plugin/WebformElement/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/c12park/web/modules/contrib/webform/src/Plugin/WebformElement/Container.php |
<?php
namespace Drupal\webform\Plugin\WebformElement;
/**
* Provides a 'container' element.
*
* @WebformElement(
* id = "container",
* default_key = "container",
* api = "https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Container.php/class/Container",
* label = @Translation("Container"),
* description = @Translation("Provides an element that wraps child elements in a container."),
* category = @Translation("Containers"),
* )
*/
class Container extends ContainerBase {
/**
* {@inheritdoc}
*/
protected function defineDefaultProperties() {
return [
// Attributes.
'attributes' => [],
// Randomize.
'randomize' => FALSE,
// Flexbox.
'flex' => 1,
// Conditional logic.
'states' => [],
'states_clear' => TRUE,
// Format.
'format' => $this->getItemDefaultFormat(),
'format_html' => '',
'format_text' => '',
'format_attributes' => [],
];
}
}