EntityDisplayInterface::getRenderer

public EntityDisplayInterface::getRenderer($field_name)

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.

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);
doc_Drupal
2016-10-29 09:05:30
Comments
Leave a Comment

Please login to continue.