This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Drupal\lightning_layout; | |
use Drupal\Core\Entity\Entity\EntityViewDisplay; | |
class PanelizerAwareEntityViewDisplay extends EntityViewDisplay { | |
protected function ensurePanelizerFieldStorage() { | |
$storage = $this->entityTypeManager()->getStorage('field_storage_config'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo_route: | |
pattern: '/some/random/{entity_type}/{entity}/route' | |
options: | |
parameters: | |
entity: | |
type: entity:{entity_type} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @Page( | |
* id = "my_page", | |
* title = @Translation("My page") | |
* routes = { | |
* @Route("/another/page/{foo}") | |
* @Route("/my/page/{foo}", "SomeOtherClass::access") | |
* } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @Page( | |
* id = "my_page", | |
* title = @Translation("My page") | |
* routes = { | |
* @Route("/another/page/{foo}") | |
* @Route("/my/page/{foo}", "SomeOtherClass::access") | |
* } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Config\TypedConfigManager. | |
*/ | |
namespace Drupal\Core\Config; | |
use Drupal\Component\Plugin\PluginManagerBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_page_edit: | |
pattern: '/music/{album}/{artist}' | |
defaults: | |
_content: 'Drupal\music\MusicController::view' | |
requirements: | |
_permission: 'yeap' | |
options: | |
converter: | |
album: 'paramconverter.typed_data' | |
artist: 'paramconverter.typed_data' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: frontend | |
label: Frontend master display | |
layout: static_layout:layout__core | |
layoutSettings: { } | |
staticContexts: | |
urlgoober: | |
type: string | |
value: path/to/node | |
derivedContexts: | |
node_author: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id: frontend | |
label: Frontend master display | |
layout: static_layout:layout__core | |
layoutSettings: { } | |
blockInfo: | |
context: | |
url: | |
type: static | |
address: poobah | |
node_2: |