You are here

public function ObjectInterface::getOption in Openlayers 7.3

Returns an option.

Parameters

string|array $parents: TODO Define how this has to look like if it is an array.

mixed $default_value: The default value to return if the option isn't set. Set to NULL if not defined.

Return value

mixed The value of the option or the defined default value.

1 method overrides ObjectInterface::getOption()
Base::getOption in src/Types/Base.php
Returns an option.

File

src/Types/ObjectInterface.php, line 76
Interface ObjectInterface.

Class

ObjectInterface
Interface openlayers_object_interface.

Namespace

Drupal\openlayers\Types

Code

public function getOption($parents, $default_value = NULL);