You are here

public function StyleDiscoveryInterface::getStyleOptions in Paragraphs Collection 8

Gets sorted style titles keyed by their names belonging to the given group.

If an empty string is given, returns all styles.

Parameters

string $group: (optional) The style group. Defaults to empty string.

bool $access_check: (optional) Whether we should check the style access. Defaults to false.

Return value

array An array of style titles keyed by the respective style machine names.

1 method overrides StyleDiscoveryInterface::getStyleOptions()
StyleDiscovery::getStyleOptions in src/StyleDiscovery.php
Gets sorted style titles keyed by their names belonging to the given group.

File

src/StyleDiscoveryInterface.php, line 37

Class

StyleDiscoveryInterface
Provides discovery for a YAML style files in specific directories.

Namespace

Drupal\paragraphs_collection

Code

public function getStyleOptions($group = '', $access_check = FALSE);