public function EntityDisplayModeInterface::setTargetType

public EntityDisplayModeInterface::setTargetType($target_entity_type)

Set the entity type this display mode is used for.

Parameters

string $target_entity_type: The target entity type for this display mode.

Return value

$this

File

core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php, line 28

Class

EntityDisplayModeInterface
Provides an interface for entity types that hold form and view mode settings.

Namespace

Drupal\Core\Entity

Code

public function setTargetType($target_entity_type);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDisplayModeInterface.php/function/EntityDisplayModeInterface::setTargetType/8.1.x