diff --git a/lmmi.info.yml b/lmmi.info.yml new file mode 100644 index 0000000..15efc0e --- /dev/null +++ b/lmmi.info.yml @@ -0,0 +1,7 @@ +name: 'lmmi' +type: module +description: 'Custom extensions for the LMMI Journal site' +core: 8.x +package: 'LMMI' +dependencies: + - toc_api diff --git a/lmmi.module b/lmmi.module new file mode 100644 index 0000000..8082dab --- /dev/null +++ b/lmmi.module @@ -0,0 +1,24 @@ +' . t('About') . ''; + $output .= '

' . t('Custom extensions for the LMMI Journal site') . '

'; + return $output; + + default: + } +} diff --git a/src/Plugin/Block/TocWrapperBlock.php b/src/Plugin/Block/TocWrapperBlock.php new file mode 100644 index 0000000..bbefba8 --- /dev/null +++ b/src/Plugin/Block/TocWrapperBlock.php @@ -0,0 +1,33 @@ +getCurrentToc()) { + return parent::build(); + } + + return []; + } + /** + * @inheritdoc + */ + protected function getCurrentTocId() { + return 'toc_filter'; + } +}