public BaseFieldDefinition::getConfig($bundle)
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.
string $bundle: The bundle to get the configurable field for.
\Drupal\Core\Field\FieldConfigInterface
Overrides FieldDefinitionInterface::getConfig
\Drupal\Core\Field\Entity\BaseFieldBundleOverride
public function getConfig($bundle) { $override = BaseFieldOverride::loadByName($this->getTargetEntityTypeId(), $bundle, $this->getName()); if ($override) { return $override; } return BaseFieldOverride::createFromBaseFieldDefinition($this, $bundle); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!BaseFieldDefinition.php/function/BaseFieldDefinition::getConfig/8.1.x