public function StyleDiscoveryInterface::isAllowedAccess

Checks whether the given account has access to the given style name.

Parameters

array $style_definition: The style definition.

\Drupal\Core\Session\AccountProxyInterface|null $account: (optional) The account to check access for. Defaults to current user.

Return value

bool TRUE if the user has access to the style. Otherwise, FALSE.

1 method overrides StyleDiscoveryInterface::isAllowedAccess()
StyleDiscovery::isAllowedAccess in paragraphs_collection/src/StyleDiscovery.php
Checks whether the given account has access to the given style name.

File

paragraphs_collection/src/StyleDiscoveryInterface.php, line 87

Class

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

Namespace

Drupal\paragraphs_collection

Code

public function isAllowedAccess(array $style_definition, AccountProxyInterface $account = NULL);