You are here

class FieldTypePluginManagerMock in Entity Construction Kit (ECK) 8

Mock implementation of FieldTypePluginManagerInterface.

Hierarchy

Expanded class hierarchy of FieldTypePluginManagerMock

1 file declares its use of FieldTypePluginManagerMock
UnitTestBase.php in tests/src/Unit/UnitTestBase.php

File

tests/src/Unit/TestDoubles/FieldTypePluginManagerMock.php, line 8

Namespace

Drupal\Tests\eck\Unit\TestDoubles
View source
class FieldTypePluginManagerMock extends FieldTypePluginManagerDummy {

  /**
   * {@inheritdoc}
   */
  public function getDefaultStorageSettings($type) {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getDefaultFieldSettings($type) {
    return [];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FieldTypePluginManagerDummy::createFieldItem public function Creates a new field item as part of a field item list. Overrides FieldTypePluginManagerInterface::createFieldItem
FieldTypePluginManagerDummy::createFieldItemList public function Creates a new field item list. Overrides FieldTypePluginManagerInterface::createFieldItemList
FieldTypePluginManagerDummy::createInstance public function Creates a pre-configured instance of a plugin. Overrides FactoryInterface::createInstance
FieldTypePluginManagerDummy::getCategories public function Gets the names of all categories. Overrides CategorizingPluginManagerInterface::getCategories
FieldTypePluginManagerDummy::getDefinition public function Gets a specific plugin definition. Overrides DiscoveryInterface::getDefinition
FieldTypePluginManagerDummy::getDefinitions public function Gets the definition of all plugins for this type. Overrides DiscoveryInterface::getDefinitions
FieldTypePluginManagerDummy::getGroupedDefinitions public function Gets sorted plugin definitions grouped by category. Overrides CategorizingPluginManagerInterface::getGroupedDefinitions
FieldTypePluginManagerDummy::getInstance public function Gets a preconfigured instance of a plugin. Overrides MapperInterface::getInstance
FieldTypePluginManagerDummy::getPluginClass public function Returns the PHP class that implements the field type plugin. Overrides FieldTypePluginManagerInterface::getPluginClass
FieldTypePluginManagerDummy::getPreconfiguredOptions public function Returns preconfigured field options for a field type. Overrides FieldTypePluginManagerInterface::getPreconfiguredOptions
FieldTypePluginManagerDummy::getSortedDefinitions public function Gets sorted plugin definitions. Overrides CategorizingPluginManagerInterface::getSortedDefinitions
FieldTypePluginManagerDummy::getUiDefinitions public function Gets the definition of all field types that can be added via UI. Overrides FieldTypePluginManagerInterface::getUiDefinitions
FieldTypePluginManagerDummy::hasDefinition public function Indicates if a specific plugin definition exists. Overrides DiscoveryInterface::hasDefinition
FieldTypePluginManagerMock::getDefaultFieldSettings public function Returns the default field-level settings for a field type. Overrides FieldTypePluginManagerDummy::getDefaultFieldSettings
FieldTypePluginManagerMock::getDefaultStorageSettings public function Returns the default storage-level settings for a field type. Overrides FieldTypePluginManagerDummy::getDefaultStorageSettings