FieldConfigBase::getConfig

public FieldConfigBase::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

Overrides FieldDefinitionInterface::getConfig

See also

\Drupal\Core\Field\Entity\BaseFieldBundleOverride

File

core/lib/Drupal/Core/Field/FieldConfigBase.php, line 525

Class

FieldConfigBase
Base class for configurable field definitions.

Namespace

Drupal\Core\Field

Code

public function getConfig($bundle) {
  return $this;
}
doc_Drupal
2016-10-29 09:10:51
Comments
Leave a Comment

Please login to continue.