You are here

function drush_layout_plugin_region_normalize in Layout Plugin (obsolete, use core's Layout Discovery) 8

File

./layout_plugin.drush.inc, line 76
Drush integration.

Code

function drush_layout_plugin_region_normalize($file = NULL) {
  $layouts = Yaml::decode(file_get_contents(drupal_get_path('module', 'layout_plugin_example') . '/layout_plugin_example.layouts.yml'));
  foreach ($layouts as $layout_plugin_id => $layout_plugin_info) {
    if ($layout_plugin_id === 'koleary') {
      $regions = $layout_plugin_info['regions'];
      var_dump($layout_plugin_id, $regions);
    }
  }
}