class ResponsiveLayout in Layout 8
Plugin annotation
@Plugin(
id = "responsive_layout",
derivative = "Drupal\rlayout\Plugin\Derivative\Layout"
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\rlayout\Plugin\layout\layout\ResponsiveLayout implements LayoutInterface
Expanded class hierarchy of ResponsiveLayout
File
- lib/
Drupal/ rlayout/ Plugin/ layout/ layout/ ResponsiveLayout.php, line 21 - Definition of Drupal\rlayout\Plugin\layout\layout\ResponsiveLayout.
Namespace
Drupal\rlayout\Plugin\layout\layoutView source
class ResponsiveLayout extends PluginBase implements LayoutInterface {
/**
* Overrides Drupal\Component\Plugin\PluginBase::__construct().
*/
public function __construct(array $configuration, $plugin_id, DiscoveryInterface $discovery) {
// Get definition by discovering the declarative information.
$definition = $discovery
->getDefinition($plugin_id);
foreach ($definition['regions'] as $region => $title) {
if (!isset($configuration['regions'][$region])) {
$configuration['regions'][$region] = array();
}
}
parent::__construct($configuration, $plugin_id, $discovery);
}
/**
* Implements Drupal\layout\Plugin\LayoutInterface::renderLayout().
*/
public function renderLayout($admin = FALSE) {
$definition = $this
->getDefinition();
return '@todo Temporary';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LayoutInterface:: |
public | function | Returns a list of regions. | 1 |
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
ResponsiveLayout:: |
public | function |
Implements Drupal\layout\Plugin\LayoutInterface::renderLayout(). Overrides LayoutInterface:: |
|
ResponsiveLayout:: |
public | function |
Overrides Drupal\Component\Plugin\PluginBase::__construct(). Overrides PluginBase:: |