You are here

public function StyleDiscoveryInterface::isAllowedAccess in Paragraphs Collection 8

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 src/StyleDiscovery.php
Checks whether the given account has access to the given style name.

File

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);