protected function OpenApiGeneratorBase::getEntityDefinitionKey in OpenAPI 8.2
Same name and namespace in other branches
- 8 src/Plugin/openapi/OpenApiGeneratorBase.php \Drupal\openapi\Plugin\openapi\OpenApiGeneratorBase::getEntityDefinitionKey()
Gets the entity definition key.
Parameters
string $entity_type_id: The entity type.
string $bundle_name: The bundle name.
Return value
string The entity definition key. Either [entity_type] or [entity_type]:[bundle_name]
2 calls to OpenApiGeneratorBase::getEntityDefinitionKey()
- OpenApiGeneratorBase::getDefinitionReference in src/
Plugin/ openapi/ OpenApiGeneratorBase.php - Gets the reference to the definition in the document.
- OpenApiGeneratorBase::includeEntityTypeBundle in src/
Plugin/ openapi/ OpenApiGeneratorBase.php - Determines if an entity type and/or bundle show be included.
File
- src/
Plugin/ openapi/ OpenApiGeneratorBase.php, line 498
Class
- OpenApiGeneratorBase
- Defines base class for OpenApi Generator plugins.
Namespace
Drupal\openapi\Plugin\openapiCode
protected function getEntityDefinitionKey($entity_type_id, $bundle_name = NULL) {
$definition_key = $entity_type_id;
if ($bundle_name) {
$definition_key .= static::$DEFINITION_SEPARATOR . $bundle_name;
}
return $definition_key;
}