You are here

public function TestComponent::getComponentType in Module Builder 8.3

Gets the component type that should be passed to DCB.

Return value

string The component type.

Overrides ComponentInterface::getComponentType

File

tests/modules/module_builder_test_component_type/src/Entity/TestComponent.php, line 89

Class

TestComponent
Defines a test component entity.

Namespace

Drupal\module_builder_test_component_type\Entity

Code

public function getComponentType() : string {

  // No need to do anything special here, as this value is only used to pass
  // to the Generate task, and we use a custom one which doesn't care.
  return 'module';
}