protected function ConfigImporter::getNextExtensionOperation

protected ConfigImporter::getNextExtensionOperation()

Gets the next extension operation to perform.

Return value

array|bool An array containing the next operation and extension name to perform it on. If there is nothing left to do returns FALSE;

File

core/lib/Drupal/Core/Config/ConfigImporter.php, line 659

Class

ConfigImporter
Defines a configuration importer.

Namespace

Drupal\Core\Config

Code

protected function getNextExtensionOperation() {
  foreach (array('module', 'theme') as $type) {
    foreach (array('install', 'uninstall') as $op) {
      $unprocessed = $this->getUnprocessedExtensions($type);
      if (!empty($unprocessed[$op])) {
        return array(
          'op' => $op,
          'type' => $type,
          'name' => array_shift($unprocessed[$op]),
        );
      }
    }
  }
  return FALSE;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigImporter.php/function/ConfigImporter::getNextExtensionOperation/8.1.x