protected function WebformOptionsCustom::getEntity in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_options_custom/src/Plugin/WebformElement/WebformOptionsCustom.php \Drupal\webform_options_custom\Plugin\WebformElement\WebformOptionsCustom::getEntity()
Get webform custom options entity.
Return value
\Drupal\webform_options_custom\WebformOptionsCustomInterface A webform custom options entity.
File
- modules/
webform_options_custom/ src/ Plugin/ WebformElement/ WebformOptionsCustom.php, line 263
Class
- WebformOptionsCustom
- Provides a custom options element.
Namespace
Drupal\webform_options_custom\Plugin\WebformElementCode
protected function getEntity() {
list(, $webform_options_custom_id) = explode(':', $this
->getPluginId());
return $this->entityTypeManager
->getStorage('webform_options_custom')
->load($webform_options_custom_id);
}