function Extension::__call
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::__call()
- 8.9.x core/lib/Drupal/Core/Extension/Extension.php \Drupal\Core\Extension\Extension::__call()
Re-routes method calls to SplFileInfo.
Offers all SplFileInfo methods to consumers; e.g., $extension->getMTime().
Deprecated
in drupal:10.1.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Extension\Extension::getFileInfo() instead.
See also
https://www.drupal.org/node/2959989
File
-
core/
lib/ Drupal/ Core/ Extension/ Extension.php, line 169
Class
- Extension
- Defines an extension (file) object.
Namespace
Drupal\Core\ExtensionCode
public function __call($method, array $args) {
@trigger_error(__METHOD__ . "('{$method}')" . ' is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Extension\\Extension::getFileInfo() instead. See https://www.drupal.org/node/3322608', E_USER_DEPRECATED);
return call_user_func_array([
$this->getFileInfo(),
$method,
], $args);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.