You are here

public function EntityDisplayModeInterface::setTargetType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php \Drupal\Core\Entity\EntityDisplayModeInterface::setTargetType()

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

1 method overrides EntityDisplayModeInterface::setTargetType()
EntityDisplayModeBase::setTargetType in core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php
Set the entity type this display mode is used for.

File

core/lib/Drupal/Core/Entity/EntityDisplayModeInterface.php, line 33
Contains \Drupal\Core\Entity\EntityDisplayModeInterface.

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);