You are here

public function FrameworkInterface::fieldTypeMachineName in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::fieldTypeMachineName()
  2. 7.2 api/src/Framework/FrameworkInterface.php \Drupal\realistic_dummy_content_api\Framework\FrameworkInterface::fieldTypeMachineName()

Return a Drupal 7-style field name if possible for a given entity.

For example if the field type is entity_reference, we can transform that to taxonomy_term_reference for a given field in a given entity.

Parameters

array $info: An associative array which can contain "entity" and "field_name" and "machine_name".

Return value

string A Drupal 7-style field type machine name.

1 method overrides FrameworkInterface::fieldTypeMachineName()
Framework::fieldTypeMachineName in api/src/Framework/Framework.php
Return a Drupal 7-style field name if possible for a given entity.

File

api/src/Framework/FrameworkInterface.php, line 99

Class

FrameworkInterface
Defines and abstracts all functions which are used by our module.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function fieldTypeMachineName(array $info);