You are here

public function ConfigurableFieldManagerInterface::deleteField in Commerce Core 8.2

Deletes the configurable field created from the given field definition.

Parameters

\Drupal\entity\BundleFieldDefinition $field_definition: The field definition.

Throws

\InvalidArgumentException Thrown when given an incomplete field definition (missing name, target entity type ID, or target bundle).

\RuntimeException Thrown when no matching field was found.

1 method overrides ConfigurableFieldManagerInterface::deleteField()
ConfigurableFieldManager::deleteField in src/ConfigurableFieldManager.php
Deletes the configurable field created from the given field definition.

File

src/ConfigurableFieldManagerInterface.php, line 42

Class

ConfigurableFieldManagerInterface
Manages configurable fields based on field definitions.

Namespace

Drupal\commerce

Code

public function deleteField(EntityBundleFieldDefinition $field_definition);