function ExtensionList::subClassExtension

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Extension/ExtensionList.php \Drupal\Core\Extension\ExtensionList::subClassExtension()

Allows subclasses to convert the extension into a specific subclass.

Parameters

\Drupal\Core\Extension\Extension $extension: The extension.

Return value

\Drupal\Core\Extension\Extension Either the unchanged Extension object or a subclass of Extension.

File

core/lib/Drupal/Core/Extension/ExtensionList.php, line 335

Class

ExtensionList
Provides available extensions.

Namespace

Drupal\Core\Extension

Code

protected function subClassExtension(Extension $extension) : Extension {
  return $extension;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.