Mercurial > hg > isophonics-drupal-site
diff core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/layout_builder/src/LayoutBuilderEnabledInterface.php Thu Feb 28 13:21:36 2019 +0000 @@ -0,0 +1,32 @@ +<?php + +namespace Drupal\layout_builder; + +/** + * Provides methods for enabling and disabling Layout Builder. + */ +interface LayoutBuilderEnabledInterface { + + /** + * Determines if Layout Builder is enabled. + * + * @return bool + * TRUE if Layout Builder is enabled, FALSE otherwise. + */ + public function isLayoutBuilderEnabled(); + + /** + * Enables the Layout Builder. + * + * @return $this + */ + public function enableLayoutBuilder(); + + /** + * Disables the Layout Builder. + * + * @return $this + */ + public function disableLayoutBuilder(); + +}