function EntityDisplayInterface::getRenderer

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php \Drupal\Core\Entity\Display\EntityDisplayInterface::getRenderer()
  2. 8.9.x core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php \Drupal\Core\Entity\Display\EntityDisplayInterface::getRenderer()
  3. 11.x core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php \Drupal\Core\Entity\Display\EntityDisplayInterface::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.

1 call to EntityDisplayInterface::getRenderer()
EntityDisplayBase::onDependencyRemoval in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Informs the entity that entities it depends on will be deleted.
3 methods override EntityDisplayInterface::getRenderer()
EntityDisplayBaseMockableClass::getRenderer in core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayBaseTest.php
Gets the renderer plugin for a field (e.g. widget, formatter).
EntityFormDisplay::getRenderer in core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php
Gets the renderer plugin for a field (e.g. widget, formatter).
EntityViewDisplay::getRenderer in core/lib/Drupal/Core/Entity/Entity/EntityViewDisplay.php
Gets the renderer plugin for a field (e.g. widget, formatter).

File

core/lib/Drupal/Core/Entity/Display/EntityDisplayInterface.php, line 87

Class

EntityDisplayInterface
Provides a common interface for entity displays.

Namespace

Drupal\Core\Entity\Display

Code

public function getRenderer($field_name);

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