Skip to content

Instantly share code, notes, and snippets.

View EclipseGc's full-sized avatar

Kris Vanderwater EclipseGc

View GitHub Profile
<?php
/**
* @file
* Contains PageManagerWizard.php.
*/
namespace Drupal\page_manager\Route;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
<?php
$form['items'] = array(
'#type' => 'markup',
'#prefix' => '<div id="configured-conditions">',
'#suffix' => '</div>',
'#theme' => 'table',
'#header' => array('Type', 'Summary', 'Operations'),
'#rows' => $configured_conditions,
<?php
array(
'type' => 'entity:node',
);
array(
"type" => "entity",
"constraints" => array(
"EntityType" => "node"
<?php
$definition = $this->typed_data->getDefinition('entity:node');
$definition = new DataDefinition($definition);
$contexts[$id] = $this->typed_data->create($definition, NULL, 'node');
<?php
/**
* @file
* Contains PageManagerWizard.php.
*/
namespace Drupal\page_manager\Route;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
<?php
$type = 'entity:node';
$definition= DataDefinition::create($type);
$empty_node = $typed_data_manager->create($definition, NULL, 'node');
page_manager.wizard:
path: '/admin/structure/pages/edit/{display}/{step}'
defaults:
_content: '\Drupal\page_manager\Route\PageManagerWizard::wizard'
_title: 'Create Page'
requirements:
_permission: 'administer pages'
<?php
/**
* @file
* Contains DisplayFormController.php.
*/
namespace Drupal\page_manager\Form;
use Drupal\Core\Entity\EntityFormController;
use Drupal\page_manager\PageHandlerPluginManager;
.__two-section-2-1--LAYOUT {
width: 100%;
margin-top: 10px;
}
.__two-section-2-1--first {
width: 65.78947%;
float: left;
margin-right: -100%;
margin-left: 0%;
$grids: 2 1;
$gutters: 1/25;
.__two-section-2-1--LAYOUT {
width: 100%;
margin-top: 10px;
}
.__two-section-2-1--first {
@include grid-span(1, 1);