Checks whether the given account has access to the given style name.
array $style_definition: The style definition.
\Drupal\Core\Session\AccountProxyInterface|null $account: (optional) The account to check access for. Defaults to current user.
bool TRUE if the user has access to the style. Otherwise, FALSE.
public function isAllowedAccess(array $style_definition, AccountProxyInterface $account = NULL);