Skip to content
Snippets Groups Projects
Commit 00973ad9 authored by Gareth Poole's avatar Gareth Poole
Browse files

Issue #3358346 by gareth.poole: Sector 10 - Default page config and sample content

parent 6731ed97
No related branches found
No related tags found
1 merge request!38Issue #3375049 "Upgrade rabbit hole"
name: Sector default news content and configuration
name: Sector News
type: module
description: Provides the default content and configuration for News content type
package: Sector
......
......@@ -4,30 +4,18 @@
* Install, update and uninstall functions for the profilename install profile.
*/
/**
* Implements hook_install_tasks().
*/
function sector_news_install_tasks() {
return [
'sector_news_install_required_modules' => [
'display_name' => t('Sector news install required modules'),
'type' => 'default',
],
];
}
/**
* Content install task.
/*
* Implements hook_install()
*/
function sector_news_install_required_modules() {
function sector_news_install() {
\Drupal::service('module_installer')->install([
'schema_article',
'metatag_twitter_cards'
], FALSE);
}
/**
* Content install task.
/*
* Implements hook_uninstall()
*/
function sector_news_uninstall() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment