You are here

protected function YamlFormElementBase::getDefaultBaseProperties in YAML Form 8

Get default base properties used by all elements.

Return value

array An associative array containing base properties used by all elements.

8 calls to YamlFormElementBase::getDefaultBaseProperties()
ContainerBase::getDefaultProperties in src/Plugin/YamlFormElement/ContainerBase.php
Only a few elements don't inherit these default properties.
Item::getDefaultProperties in src/Plugin/YamlFormElement/Item.php
Only a few elements don't inherit these default properties.
Textarea::getDefaultProperties in src/Plugin/YamlFormElement/Textarea.php
Only a few elements don't inherit these default properties.
YamlFormCompositeBase::getDefaultProperties in src/Plugin/YamlFormElement/YamlFormCompositeBase.php
Only a few elements don't inherit these default properties.
YamlFormElementBase::getDefaultProperties in src/YamlFormElementBase.php
Only a few elements don't inherit these default properties.

... See full list

File

src/YamlFormElementBase.php, line 176

Class

YamlFormElementBase
Provides a base class for a form element.

Namespace

Drupal\yamlform

Code

protected function getDefaultBaseProperties() {
  return [
    // Administration.
    'admin_title' => '',
    'private' => FALSE,
    // Flexbox.
    'flex' => 1,
    // Conditional logic.
    'states' => [],
    // Element access.
    'access_create_roles' => [
      'anonymous',
      'authenticated',
    ],
    'access_create_users' => [],
    'access_update_roles' => [
      'anonymous',
      'authenticated',
    ],
    'access_update_users' => [],
    'access_view_roles' => [
      'anonymous',
      'authenticated',
    ],
    'access_view_users' => [],
  ];
}