W3cubDocs

/Drupal 8

public function FieldDefinitionInterface::getConfig

public FieldDefinitionInterface::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.

Parameters

string $bundle: The bundle to get the configurable field for.

Return value

\Drupal\Core\Field\FieldConfigInterface

See also

\Drupal\Core\Field\Entity\BaseFieldBundleOverride

File

core/lib/Drupal/Core/Field/FieldDefinitionInterface.php, line 257

Class

FieldDefinitionInterface
Defines an interface for entity field definitions.

Namespace

Drupal\Core\Field

Code

public function getConfig($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!FieldDefinitionInterface.php/function/FieldDefinitionInterface::getConfig/8.1.x