Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line source
<?php namespace Drupal\Core\Layout; use Drupal\Component\Plugin\CategorizingPluginManagerInterface; /** * Provides the interface for a plugin manager of layouts. */ interface LayoutPluginManagerInterface extends CategorizingPluginManagerInterface { /** * Gets theme implementations for layouts. * * @return array * An associative array of the same format as returned by hook_theme(). * * @see hook_theme() */ public function getThemeImplementations(); /** * {@inheritdoc} * * @return \Drupal\Core\Layout\LayoutInterface */ public function createInstance($plugin_id, array $configuration = []); /** * {@inheritdoc} * * @return \Drupal\Core\Layout\LayoutDefinition|null */ public function getDefinition($plugin_id, $exception_on_invalid = TRUE); /** * {@inheritdoc} * * @return \Drupal\Core\Layout\LayoutDefinition[] */ public function getDefinitions(); /** * {@inheritdoc} * * @return \Drupal\Core\Layout\LayoutDefinition[] */ public function getSortedDefinitions(array $definitions = NULL); /** * {@inheritdoc} * * @return \Drupal\Core\Layout\LayoutDefinition[][] */ public function getGroupedDefinitions(array $definitions = NULL); /** * Returns an array of layout labels grouped by category. * * @return string[][] * A nested array of labels suitable for #options. */ public function getLayoutOptions(); }