public function YamlFormElementBase::isContainer in YAML Form 8
Checks if element is a container that can contain elements.
Parameters
array $element: An element.
Return value
bool TRUE if the element is a container that can contain elements.
Overrides YamlFormElementInterface::isContainer
1 call to YamlFormElementBase::isContainer()
- YamlFormElementBase::getRelatedTypes in src/
YamlFormElementBase.php - Get related element types.
3 methods override YamlFormElementBase::isContainer()
- ContainerBase::isContainer in src/
Plugin/ YamlFormElement/ ContainerBase.php - Checks if element is a container that can contain elements.
- Table::isContainer in src/
Plugin/ YamlFormElement/ Table.php - Checks if element is a container that can contain elements.
- YamlFormMarkupBase::isContainer in src/
Plugin/ YamlFormElement/ YamlFormMarkupBase.php - Checks if element is a container that can contain elements.
File
- src/
YamlFormElementBase.php, line 266
Class
- YamlFormElementBase
- Provides a base class for a form element.
Namespace
Drupal\yamlformCode
public function isContainer(array $element) {
return $this
->isInput($element) ? FALSE : TRUE;
}