Browse Source

added custom module dependencies enforced section under install/config for #1707 (#812)

pull/834/head
Willow Gillingham 4 years ago committed by GitHub
parent
commit
d76a6644c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      modules/islandora_breadcrumbs/config/install/islandora.breadcrumbs.yml
  2. 9
      modules/islandora_breadcrumbs/config/install/islandora_breadcrumbs.breadcrumbs.yml
  3. 2
      modules/islandora_breadcrumbs/config/schema/islandora_breadcrumbs.schema.yml
  4. 2
      modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php

3
modules/islandora_breadcrumbs/config/install/islandora.breadcrumbs.yml

@ -1,3 +0,0 @@
maxDepth: -1
includeSelf: FALSE
referenceField: field_member_of

9
modules/islandora_breadcrumbs/config/install/islandora_breadcrumbs.breadcrumbs.yml

@ -0,0 +1,9 @@
maxDepth: -1
includeSelf: FALSE
referenceField: field_member_of
dependencies:
module:
- islandora
enforced:
module:
- islandora_breadcrumbs

2
modules/islandora_breadcrumbs/config/schema/islandora_breadcrumbs.schema.yml

@ -1,4 +1,4 @@
islandora.breadcrumbs:
islandora_breadcrumbs.breadcrumbs:
type: config_object
mapping:
maxDepth:

2
modules/islandora_breadcrumbs/src/IslandoraBreadcrumbBuilder.php

@ -41,7 +41,7 @@ class IslandoraBreadcrumbBuilder implements BreadcrumbBuilderInterface {
*/
public function __construct(EntityTypeManagerInterface $entity_manager, ConfigFactoryInterface $config_factory) {
$this->nodeStorage = $entity_manager->getStorage('node');
$this->config = $config_factory->get('islandora.breadcrumbs');
$this->config = $config_factory->get('islandora_breadcrumbs.breadcrumbs');
}
/**

Loading…
Cancel
Save