/**
* Implements hook_plugin_filter_TYPE__CONSUMER_alter()
*/
function custom_layouts_plugin_filter_layout__layout_builder_alter(&$definitions) {
// Remove layouts that are NOT provided by this module.
foreach ($definitions as $id => &$definition) {
if ($definition->getProvider() != 'custom_layouts') {
unset($definitions[$id]);
}
}
}
Last active
April 18, 2019 17:44
-
-
Save mherchel/9249a8211a5da74096138368c9b35a7c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment