Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LintCommand.php

function LintCommand::isReadable

1 call to LintCommand::isReadable()
LintCommand::execute in vendor/symfony/yaml/Command/LintCommand.php
Executes the current command.

File

vendor/symfony/yaml/Command/LintCommand.php, line 254

Class

LintCommand
Validates YAML files syntax and outputs encountered errors.

Namespace

Symfony\Component\Yaml\Command

Code

private function isReadable(string $fileOrDirectory) : bool {
    $default = is_readable(...);
    if (null !== $this->isReadableProvider) {
        return ($this->isReadableProvider)($fileOrDirectory, $default);
    }
    return $default($fileOrDirectory);
}
RSS feed
Powered by Drupal