You are here

public function BlazyAdminBase::getViewModeOptions in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Form/BlazyAdminBase.php \Drupal\blazy\Form\BlazyAdminBase::getViewModeOptions()
  2. 7 src/Form/BlazyAdminBase.php \Drupal\blazy\Form\BlazyAdminBase::getViewModeOptions()

Returns available view modes for select options.

1 call to BlazyAdminBase::getViewModeOptions()
BlazyAdminBase::baseForm in src/Form/BlazyAdminBase.php
Returns simple form elements common for Views field, EB widget, formatters.

File

src/Form/BlazyAdminBase.php, line 713

Class

BlazyAdminBase
A base for blazy admin integration to have re-usable methods in one place.

Namespace

Drupal\blazy\Form

Code

public function getViewModeOptions($target_type) {
  return $this->entityDisplayRepository
    ->getViewModeOptions($target_type);
}