public function ParagraphsSliderPlugin::getOptionSet in Paragraphs Collection 8
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 modules/
paragraphs_collection_demo/ src/ Plugin/ paragraphs/ Behavior/ ParagraphsSliderPlugin.php - Extends the paragraph render array with behavior.
File
- modules/
paragraphs_collection_demo/ src/ Plugin/ paragraphs/ Behavior/ ParagraphsSliderPlugin.php, line 288
Class
- ParagraphsSliderPlugin
- Provides Slider plugin.
Namespace
Drupal\paragraphs_collection_demo\Plugin\paragraphs\BehaviorCode
public function getOptionSet($name) {
/** @var \Drupal\slick\Entity\Slick $entity */
$entity = $this->slickManager
->entityLoad($name, 'slick');
return $entity ? $entity
->getSettings() : [];
}