You are here

public function BlazyStylePluginTrait::getLayout in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Dejavu/BlazyStylePluginTrait.php \Drupal\blazy\Dejavu\BlazyStylePluginTrait::getLayout()
  2. 7 src/Dejavu/BlazyStylePluginTrait.php \Drupal\blazy\Dejavu\BlazyStylePluginTrait::getLayout()

Returns the rendered layout fields.

1 call to BlazyStylePluginTrait::getLayout()
BlazyStylePluginBase::buildElement in src/Dejavu/BlazyStylePluginBase.php
Returns an individual row/element content.

File

src/Dejavu/BlazyStylePluginTrait.php, line 260

Class

BlazyStylePluginTrait
A Trait common for optional views style plugins.

Namespace

Drupal\blazy\Dejavu

Code

public function getLayout(array &$settings, $index) {
  if (strpos($settings['layout'], 'field_') !== FALSE) {
    $settings['layout'] = strip_tags($this
      ->getField($index, $settings['layout']));
  }
}