You are here

public function WebformElementBase::getInfo in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformElementBase.php \Drupal\webform\Plugin\WebformElementBase::getInfo()

Retrieves the default properties for the defined element type.

Return value

array An associative array describing the element types being defined.

Overrides WebformElementInterface::getInfo

See also

\Drupal\Core\Render\ElementInfoManagerInterface::getInfo

File

src/Plugin/WebformElementBase.php, line 673

Class

WebformElementBase
Provides a base class for a webform element.

Namespace

Drupal\webform\Plugin

Code

public function getInfo() {
  return $this->elementInfo
    ->getInfo($this
    ->getBaseId());
}