You are here

public function ScssCompilerAlterStorage::getByFile in SCSS/Less Compiler 8

Get data by file path.

Parameters

string $file_path: Path to source file from DRUPAL_ROOT.

Return value

array Array with data.

1 call to ScssCompilerAlterStorage::getByFile()
ScssCompilerAlterStorage::getAll in src/ScssCompilerAlterStorage.php
Returns merged data in all scopes.

File

src/ScssCompilerAlterStorage.php, line 96

Class

ScssCompilerAlterStorage
Collects alter data.

Namespace

Drupal\scss_compiler

Code

public function getByFile($file_path) {
  if (!isset($this->storage['file'][$file_path])) {
    return [];
  }
  return $this->storage['file'][$file_path];
}