You are here

function ConfigEntityRevisionsConverterBaseInterface::getEntityTypeFromDefaults in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 src/ConfigEntityRevisionsConverterBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBaseInterface::getEntityTypeFromDefaults()
  2. 1.x src/ConfigEntityRevisionsConverterBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBaseInterface::getEntityTypeFromDefaults()

Determines the entity type ID given a route definition and route defaults.

Parameters

mixed $definition: The parameter definition provided in the route options.

string $name: The name of the parameter.

array $defaults: The route defaults array.

Return value

string The entity type ID.

Throws

ParamNotConvertedException Thrown when the dynamic entity type is not found in the route defaults.

File

src/ConfigEntityRevisionsConverterBaseInterface.php, line 40

Class

ConfigEntityRevisionsConverterBaseInterface
Interface for ConfigEntityRevisions parameter converter.

Namespace

Drupal\config_entity_revisions

Code

function getEntityTypeFromDefaults($definition, $name, array $defaults);