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