public function EntityDisplayModeBase::setTargetType
public EntityDisplayModeBase::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
Overrides EntityDisplayModeInterface::setTargetType
File
- core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 79
Class
- EntityDisplayModeBase
- Base class for config entity types with settings for form and view modes.
Namespace
Drupal\Core\EntityCode
public function setTargetType($target_entity_type) { $this->targetEntityType = $target_entity_type; return $this; }
© 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!EntityDisplayModeBase.php/function/EntityDisplayModeBase::setTargetType/8.1.x