function FieldDefinitionInterface::getConfig
Same name in other branches
- 9 core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::getConfig()
- 8.9.x core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::getConfig()
- 11.x core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::getConfig()
Gets an object that can be saved in configuration.
Base fields are defined in code. In order to configure field definition properties per bundle use this method to create an override that can be saved in configuration.
Parameters
string $bundle: The bundle to get the configurable field for.
Return value
\Drupal\Core\Field\FieldConfigInterface
See also
\Drupal\Core\Field\Entity\BaseFieldBundleOverride
3 methods override FieldDefinitionInterface::getConfig()
- BaseFieldDefinition::getConfig in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Gets an object that can be saved in configuration.
- FieldConfigBase::getConfig in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php - Gets an object that can be saved in configuration.
- FieldDefinition::getConfig in core/
lib/ Drupal/ Core/ Field/ FieldDefinition.php - Gets an object that can be saved in configuration.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldDefinitionInterface.php, line 260
Class
- FieldDefinitionInterface
- Defines an interface for entity field definitions.
Namespace
Drupal\Core\FieldCode
public function getConfig($bundle);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.