You are here

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

Returns a single layout paragraph setting.

Parameters

string $key: The setting to return.

Return value

mixed The setting value.

5 calls to LayoutParagraphsComponent::getSetting()
LayoutParagraphsComponent::getParentUuid in src/LayoutParagraphsComponent.php
Returns the parent component if one exists.
LayoutParagraphsComponent::getRegion in src/LayoutParagraphsComponent.php
Gets the region for the component.
LayoutParagraphsComponent::hasLayout in src/LayoutParagraphsComponent.php
Returns true if this component has a layout applied.
LayoutParagraphsComponent::isDisabled in src/LayoutParagraphsComponent.php
Returns true if disabled.
LayoutParagraphsComponent::isLayout in src/LayoutParagraphsComponent.php
Returns true if this component has a layout applied.

File

src/LayoutParagraphsComponent.php, line 143

Class

LayoutParagraphsComponent
Provides a domain object for a single Layout Paragraphs Component.

Namespace

Drupal\layout_paragraphs

Code

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