You are here

public function LayoutParagraphsLayout::getSetting in Layout Paragraphs 2.0.x

Returns a single setting from the settings array.

Parameters

string $key: The key of the setting to return.

mixed $default: The default value to return if the setting is empty.

File

src/LayoutParagraphsLayout.php, line 138

Class

LayoutParagraphsLayout
Provides a domain object for a complete Layout Paragraphs Layout.

Namespace

Drupal\layout_paragraphs

Code

public function getSetting(string $key, $default = NULL) {
  return $this->settings[$key] ?? $default;
}