You are here

public function FieldTypePluginManagerDummy::getPreconfiguredOptions in Entity Construction Kit (ECK) 8

Returns preconfigured field options for a field type.

This is a wrapper around \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions() allowing modules to alter the result of this method by implementing hook_field_ui_preconfigured_options_alter().

Parameters

string $field_type: The field type plugin ID.

Return value

array A multi-dimensional array as returned from \Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions().

Overrides FieldTypePluginManagerInterface::getPreconfiguredOptions

See also

\Drupal\Core\Field\PreconfiguredFieldUiOptionsInterface::getPreconfiguredOptions()

hook_field_ui_preconfigured_options_alter()

File

tests/src/Unit/TestDoubles/FieldTypePluginManagerDummy.php, line 115

Class

FieldTypePluginManagerDummy
Dummy implementation of FieldTypePluginManagerInterface.

Namespace

Drupal\Tests\eck\Unit\TestDoubles

Code

public function getPreconfiguredOptions($field_type) {

  // Stub.
}