You are here

Container.php in YAML Form 8

File

src/Plugin/YamlFormElement/Container.php
View source
<?php

namespace Drupal\yamlform\Plugin\YamlFormElement;


/**
 * Provides a 'container' element.
 *
 * @YamlFormElement(
 *   id = "container",
 *   api = "https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!Container.php/class/Container",
 *   label = @Translation("Container"),
 *   category = @Translation("Containers"),
 * )
 */
class Container extends ContainerBase {

  /**
   * {@inheritdoc}
   */
  public function getDefaultProperties() {
    return [
      // Attributes.
      'attributes' => [],
      // Flexbox.
      'flex' => 1,
      // Conditional logic.
      'states' => [],
    ];
  }

}

Classes

Namesort descending Description
Container Provides a 'container' element.