You are here

public function EmbedButton::getTypeSetting in Embed 8

Gets the value of an embed type setting.

Parameters

string $key: The setting name.

mixed $default: The default value.

Return value

mixed The value.

Overrides EmbedButtonInterface::getTypeSetting

File

src/Entity/EmbedButton.php, line 169

Class

EmbedButton
Defines the EmbedButton entity.

Namespace

Drupal\embed\Entity

Code

public function getTypeSetting($key, $default = NULL) {
  if (isset($this->type_settings[$key])) {
    return $this->type_settings[$key];
  }
  return $default;
}