interface ConfigEntityRevisionsConverterBaseInterface in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/ConfigEntityRevisionsConverterBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBaseInterface
- 1.x src/ConfigEntityRevisionsConverterBaseInterface.php \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBaseInterface
Interface for ConfigEntityRevisions parameter converter.
Hierarchy
- interface \Drupal\Core\ParamConverter\ParamConverterInterface
- interface \Drupal\config_entity_revisions\ConfigEntityRevisionsConverterBaseInterface
Expanded class hierarchy of ConfigEntityRevisionsConverterBaseInterface
All classes that implement ConfigEntityRevisionsConverterBaseInterface
File
- src/
ConfigEntityRevisionsConverterBaseInterface.php, line 12
Namespace
Drupal\config_entity_revisionsView source
interface ConfigEntityRevisionsConverterBaseInterface extends ParamConverterInterface {
/**
* {@inheritdoc}
*/
public function convert($value, $definition, $name, array $defaults);
/**
* {@inheritdoc}
*/
public function applies($definition, $name, Route $route);
/**
* Determines the entity type ID given a route definition and route defaults.
*
* @param mixed $definition
* The parameter definition provided in the route options.
* @param string $name
* The name of the parameter.
* @param array $defaults
* The route defaults array.
*
* @return string
* The entity type ID.
*
* @throws ParamNotConvertedException
* Thrown when the dynamic entity type is not found in the route defaults.
*/
function getEntityTypeFromDefaults($definition, $name, array $defaults);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigEntityRevisionsConverterBaseInterface:: |
public | function |
Determines if the converter applies to a specific route and variable. Overrides ParamConverterInterface:: |
|
ConfigEntityRevisionsConverterBaseInterface:: |
public | function |
Converts path variables to their corresponding objects. Overrides ParamConverterInterface:: |
|
ConfigEntityRevisionsConverterBaseInterface:: |
function | Determines the entity type ID given a route definition and route defaults. |