function ConfigEntityMapperInterface::setType
Same name and namespace in other branches
- 11.x core/modules/config_translation/src/ConfigEntityMapperInterface.php \Drupal\config_translation\ConfigEntityMapperInterface::setType()
Set entity type for this mapper.
This should be set in initialization. A mapper that knows its type but not yet its names is still useful for router item and tab generation. The concrete entity only turns out later with actual controller invocations, when the setEntity() method is invoked before the rest of the methods are used.
Parameters
string $entity_type_id: The entity type ID to set.
Return value
bool TRUE if the entity type ID was set correctly; FALSE otherwise.
1 method overrides ConfigEntityMapperInterface::setType()
- ConfigEntityMapper::setType in core/
modules/ config_translation/ src/ ConfigEntityMapper.php - Set entity type for this mapper.
File
-
core/
modules/ config_translation/ src/ ConfigEntityMapperInterface.php, line 52
Class
- ConfigEntityMapperInterface
- Defines an interface for configuration entity mappers.
Namespace
Drupal\config_translationCode
public function setType(string $entity_type_id) : bool;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.