public function WebformElementBase::isContainer in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::isContainer()
Checks if the 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 WebformElementInterface::isContainer
3 calls to WebformElementBase::isContainer()
- WebformElementBase::format in src/
Plugin/ WebformElementBase.php - Format an element's value as HTML or plain text.
- WebformElementBase::getElementStateOptions in src/
Plugin/ WebformElementBase.php - Get an element's supported states as options.
- WebformElementBase::getRelatedTypes in src/
Plugin/ WebformElementBase.php - Get related element types.
9 methods override WebformElementBase::isContainer()
- Captcha::isContainer in src/
Plugin/ WebformElement/ Captcha.php - Checks if the element is a container that can contain elements.
- ContainerBase::isContainer in src/
Plugin/ WebformElement/ ContainerBase.php - Checks if the element is a container that can contain elements.
- Table::isContainer in src/
Plugin/ WebformElement/ Table.php - Checks if the element is a container that can contain elements.
- VerticalTabs::isContainer in src/
Plugin/ WebformElement/ VerticalTabs.php - Checks if the element is a container that can contain elements.
- WebformComputedBase::isContainer in src/
Plugin/ WebformElement/ WebformComputedBase.php - Checks if the element is a container that can contain elements.
File
- src/
Plugin/ WebformElementBase.php, line 560
Class
- WebformElementBase
- Provides a base class for a webform element.
Namespace
Drupal\webform\PluginCode
public function isContainer(array $element) {
return $this
->isInput($element) ? FALSE : TRUE;
}