You are here

public function FieldsPluginOptions::getSelectedLayoutDefinition in Layout Plugin Views 8

Same name and namespace in other branches
  1. 8.2 src/FieldsPluginOptions.php \Drupal\layout_plugin_views\FieldsPluginOptions::getSelectedLayoutDefinition()

Retrieves the definition of the selected layout.

Return value

array

File

src/FieldsPluginOptions.php, line 78

Class

FieldsPluginOptions

Namespace

Drupal\layout_plugin_views

Code

public function getSelectedLayoutDefinition() {
  return $this
    ->hasValidSelectedLayout() ? $this->layoutPluginManager
    ->getDefinition($this
    ->getLayout()) : [];
}