Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

LayoutPluginManagerInterface.php

Namespace

Drupal\Core\Layout

File

core/lib/Drupal/Core/Layout/LayoutPluginManagerInterface.php

View source
<?php

namespace Drupal\Core\Layout;

use Drupal\Component\Plugin\CategorizingPluginManagerInterface;
use Drupal\Core\Plugin\FilteredPluginManagerInterface;

/**
 * Provides the interface for a plugin manager of layouts.
 */
interface LayoutPluginManagerInterface extends CategorizingPluginManagerInterface, FilteredPluginManagerInterface {
    
    /**
     * 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();

}

Interfaces

Title Deprecated Summary
LayoutPluginManagerInterface Provides the interface for a plugin manager of layouts.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal