You are here

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

Same name and namespace in other branches
  1. 8.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::fieldTypeMachineName()
  2. 7.2 api/src/Framework/Framework.php \Drupal\realistic_dummy_content_api\Framework\Framework::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.

Overrides FrameworkInterface::fieldTypeMachineName

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

File

api/src/Framework/Framework.php, line 138

Class

Framework
The entry point for the framework.

Namespace

Drupal\realistic_dummy_content_api\Framework

Code

public function fieldTypeMachineName(array $info) {
  return $this
    ->implementor()
    ->fieldTypeMachineName($info);
}