function EntityDisplayBaseMockableClass::getRenderer

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php \Drupal\Tests\Core\Config\Entity\EntityDisplayBaseMockableClass::getRenderer()

Gets the renderer plugin for a field (e.g. widget, formatter).

Parameters

string $field_name: The field name.

Return value

\Drupal\Core\Field\PluginSettingsInterface|null A widget or formatter plugin or NULL if the field does not exist.

Overrides EntityDisplayInterface::getRenderer

File

core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php, line 90

Class

EntityDisplayBaseMockableClass
A class extending EntityDisplayBase for testing purposes.

Namespace

Drupal\Tests\Core\Config\Entity

Code

public function getRenderer($field_name) {
    return NULL;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.