You are here

public function FieldManagerInterface::cloneField in Scheduled Updates 8

Clone field onto a Scheduled Update Type.

Parameters

\Drupal\scheduled_updates\ScheduledUpdateTypeInterface $scheduled_update_type:

$field_name: Field name on the source entity type.

null $field_config_id: Id for configurable fields. Base fields will not have this.

Return value

bool|\Drupal\field\Entity\FieldConfig

1 method overrides FieldManagerInterface::cloneField()
FieldManager::cloneField in src/FieldManager.php
[@inheritdoc}

File

src/FieldManagerInterface.php, line 28
Contains \Drupal\scheduled_updates\FieldManagerInterface.

Class

FieldManagerInterface
Interface for the field manager service.

Namespace

Drupal\scheduled_updates

Code

public function cloneField(ScheduledUpdateTypeInterface $scheduled_update_type, $field_name, $field_config_id = NULL, array $default_value = [], $hide = FALSE);