You are here

public function ExtraFieldPlusDisplayBase::getSetting in Extra Field Settings Provider 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ExtraFieldPlusDisplayBase.php \Drupal\extra_field_plus\Plugin\ExtraFieldPlusDisplayBase::getSetting()

Returns field setting.

Parameters

string $name: Setting name.

Return value

mixed|null The field setting or NULL if does not exist.

Overrides ExtraFieldPlusDisplayInterface::getSetting

File

src/Plugin/ExtraFieldPlusDisplayBase.php, line 37

Class

ExtraFieldPlusDisplayBase
Base class for Extra field Plus Display plugins.

Namespace

Drupal\extra_field_plus\Plugin

Code

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