Extension::__call

public Extension::__call($method, array $args)

Re-routes method calls to SplFileInfo.

Offers all SplFileInfo methods to consumers; e.g., $extension->getMTime().

File

core/lib/Drupal/Core/Extension/Extension.php, line 151

Class

Extension
Defines an extension (file) object.

Namespace

Drupal\Core\Extension

Code

public function __call($method, array $args) {
  if (!isset($this->splFileInfo)) {
    $this->splFileInfo = new \SplFileInfo($this->pathname);
  }
  return call_user_func_array(array($this->splFileInfo, $method), $args);
}
doc_Drupal
2016-10-29 09:09:40
Comments
Leave a Comment

Please login to continue.