You are here

public function EntityEmbedDisplayBase::getConfigurationValue in Entity Embed 8

Gets a configuration value.

Parameters

string $name: The name of the plugin configuration value.

mixed $default: The default value to return if the configuration value does not exist.

Return value

mixed The currently set configuration value, or the value of $default if the configuration value is not set.

1 call to EntityEmbedDisplayBase::getConfigurationValue()
FileFieldFormatter::buildConfigurationForm in src/Plugin/entity_embed/EntityEmbedDisplay/FileFieldFormatter.php
Form constructor.

File

src/EntityEmbedDisplay/EntityEmbedDisplayBase.php, line 202

Class

EntityEmbedDisplayBase
Defines a base Entity Embed Display implementation.

Namespace

Drupal\entity_embed\EntityEmbedDisplay

Code

public function getConfigurationValue($name, $default = NULL) {
  $configuration = $this
    ->getConfiguration();
  return array_key_exists($name, $configuration) ? $configuration[$name] : $default;
}