public function WebformComposite::getCompositeDefinition in Webform Composite Tools 8
Load instance of element source configuration.
Return value
\Drupal\webform_composite\WebformCompositeInterface Instance of global composite used to derive plugin instance.
File
- src/
Plugin/ WebformElement/ WebformComposite.php, line 50
Class
- WebformComposite
- Provides an Global Composite base.
Namespace
Drupal\webform_composite\Plugin\WebformElementCode
public function getCompositeDefinition() {
if (!isset($this->compositeDefinition)) {
$this->compositeDefinition = $this->entityTypeManager
->getStorage($this
->getBaseId())
->load($this
->getDerivativeId());
}
return $this->compositeDefinition;
}