public function WebformContentCreatorEntity::getBundleValue in Webform Content Creator 2.x
Returns the target bundle id.
Return value
string The target bundle id.
Overrides WebformContentCreatorInterface::getBundleValue
4 calls to WebformContentCreatorEntity::getBundleValue()
- WebformContentCreatorEntity::createContent in src/
Entity/ WebformContentCreatorEntity.php - Create content entity from webform submission.
- WebformContentCreatorEntity::equalsBundle in src/
Entity/ WebformContentCreatorEntity.php - Check if the target bundle id is equal to the configured bundle.
- WebformContentCreatorEntity::existsBundle in src/
Entity/ WebformContentCreatorEntity.php - Check if the bundle exists.
- WebformContentCreatorEntity::updateContent in src/
Entity/ WebformContentCreatorEntity.php - Update content from webform submission.
File
- src/
Entity/ WebformContentCreatorEntity.php, line 190
Class
- WebformContentCreatorEntity
- Defines the Webform Content Creator entity.
Namespace
Drupal\webform_content_creator\EntityCode
public function getBundleValue() {
$result = $this
->get('target_bundle');
if (empty($result)) {
$result = $this
->get('content_type');
}
return $result;
}