public function DeletedFieldsRepositoryInterface::addFieldDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/DeletedFieldsRepositoryInterface.php \Drupal\Core\Field\DeletedFieldsRepositoryInterface::addFieldDefinition()
- 9 core/lib/Drupal/Core/Field/DeletedFieldsRepositoryInterface.php \Drupal\Core\Field\DeletedFieldsRepositoryInterface::addFieldDefinition()
Adds a field definition object to the deleted list.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: A field definition object.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Field/ DeletedFieldsRepositoryInterface.php, line 41
Class
- DeletedFieldsRepositoryInterface
- Provides an interface for a deleted fields repository.
Namespace
Drupal\Core\FieldCode
public function addFieldDefinition(FieldDefinitionInterface $field_definition);