You are here

public function Entity::getEntityViewMode in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/DsField/Entity.php \Drupal\ds\Plugin\DsField\Entity::getEntityViewMode()
  2. 8.3 src/Plugin/DsField/Entity.php \Drupal\ds\Plugin\DsField\Entity::getEntityViewMode()

Gets the view mode.

2 calls to Entity::getEntityViewMode()
CommentUser::build in src/Plugin/DsField/Comment/CommentUser.php
Renders a field.
User::build in src/Plugin/DsField/User/User.php
Renders a field.

File

src/Plugin/DsField/Entity.php, line 111

Class

Entity
Renders an entity by a given view mode.

Namespace

Drupal\ds\Plugin\DsField

Code

public function getEntityViewMode() {
  $config = $this
    ->getConfiguration();
  return $config['entity_view_mode'];
}