public function ParagraphsSliderPlugin::getOptionSet

Returns the optionset that matches given name.

Parameters

string $name: The optionset name to be found.

Return value

array The requested optonset.

1 call to ParagraphsSliderPlugin::getOptionSet()
ParagraphsSliderPlugin::view in paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsSliderPlugin.php
Extends the paragraph render array with behavior.

File

paragraphs_collection/modules/paragraphs_collection_demo/src/Plugin/paragraphs/Behavior/ParagraphsSliderPlugin.php, line 288

Class

ParagraphsSliderPlugin
Provides Slider plugin.

Namespace

Drupal\paragraphs_collection_demo\Plugin\paragraphs\Behavior

Code

public function getOptionSet($name) {

  /** @var \Drupal\slick\Entity\Slick $entity */
  $entity = $this->slickManager
    ->entityLoad($name, 'slick');
  return $entity ? $entity
    ->getSettings() : [];
}