You are here

public function DefaultTwigExtension::get_row_style in Opigno training catalog 8

Same name and namespace in other branches
  1. 3.x src/TwigExtension/DefaultTwigExtension.php \Drupal\opigno_catalog\TwigExtension\DefaultTwigExtension::get_row_style()

Gets row style.

File

src/TwigExtension/DefaultTwigExtension.php, line 47

Class

DefaultTwigExtension
Class DefaultTwigExtension.

Namespace

Drupal\opigno_catalog\TwigExtension

Code

public function get_row_style() {
  $style = \Drupal::service('opigno_catalog.get_style')
    ->getStyle();
  return $style == 'line' ? 'style-line' : 'style-block';
}