public function EntityDisplayModeBase::getTargetType

public EntityDisplayModeBase::getTargetType()

Gets the entity type this display mode is used for.

Return value

string The entity type name.

Overrides EntityDisplayModeInterface::getTargetType

File

core/lib/Drupal/Core/Entity/EntityDisplayModeBase.php, line 72

Class

EntityDisplayModeBase
Base class for config entity types with settings for form and view modes.

Namespace

Drupal\Core\Entity

Code

public function getTargetType() {
  return $this->targetEntityType;
}

© 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::getTargetType/8.1.x