protected function OpenApiGeneratorBase::getEntityDefinitionKey in OpenAPI 8
Same name and namespace in other branches
- 8.2 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]
5 calls to OpenApiGeneratorBase::getEntityDefinitionKey()
- JsonApiGenerator::getEntityDefinitionKey in src/
Plugin/ openapi/ OpenApiGenerator/ JsonApiGenerator.php - Gets the entity definition key.
- 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.
- RestGenerator::getEntityParameters in src/
Plugin/ openapi/ OpenApiGenerator/ RestGenerator.php - Get parameters for an entity type.
- RestGenerator::getTags in src/
Plugin/ openapi/ OpenApiGenerator/ RestGenerator.php - Get tags.
1 method overrides OpenApiGeneratorBase::getEntityDefinitionKey()
- JsonApiGenerator::getEntityDefinitionKey in src/
Plugin/ openapi/ OpenApiGenerator/ JsonApiGenerator.php - Gets the entity definition key.
File
- src/
Plugin/ openapi/ OpenApiGeneratorBase.php, line 536
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;
}