You are here

public function Base::setOptions in Openlayers 7.3

Set the options array.

Parameters

array $options: The options array.

Return value

ObjectInterface The current object.

Overrides ObjectInterface::setOptions

5 calls to Base::setOptions()
Base::optionsFormSubmit in src/Types/Base.php
Submit callback for the options form.
Circle::optionsFormSubmit in src/Plugin/Style/Circle/Circle.php
Submit callback for the options form.
Random::optionsFormSubmit in modules/openlayers_library/src/Plugin/Source/Random/Random.php
Submit callback for the options form.
RegularShape::optionsFormSubmit in src/Plugin/Style/RegularShape/RegularShape.php
Submit callback for the options form.
Views::init in modules/openlayers_views/src/Plugin/Source/Views/Views.php
@inheritDoc

File

src/Types/Base.php, line 81
Class Object.

Class

Base
Class Base.

Namespace

Drupal\openlayers\Types

Code

public function setOptions(array $options = array()) {
  $this->options = $options;

  // Invalidate the Collection so it gets rebuilt with new options.
  $this->collection = NULL;
  return $this;
}