This file contains hidden or 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
| //class SPSDrupalVariableControllerUnitTest extends DrupalUnitTestCase { | |
| class SPSDrupalVariableControllerUnitTest extends DrupalWebTestCase { | |
| static function getInfo() { | |
| return array( | |
| 'name' => 'SPS DrupalVariableController Unit Tests', | |
| 'description' => 'Test the public interface to the DrupalVariableController object', | |
| 'group' => 'SPS', | |
| ); | |
| } | |
| /** |
This file contains hidden or 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\sps; | |
| interface OverrideInterface { | |
| /** | |
| * construct an array of override arrays | |
| * | |
| * @return an array of override arrays | |
| */ | |
| public function getOverrides(); | |
| } |
This file contains hidden or 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
| .------------------------. | |
| | Page Call | | |
| '------------------------' | |
| | | |
| v ____________________________ | |
| .---------. \ \ | |
| / Call to \ \ ESI module ask plugin to \ | |
| ( ESI PATH? )--------->) build content ) | |
| \ / / / |
This file contains hidden or 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 | |
| $output = '<div id="breadcrumb" class="clearfix"><ul class="breadcrumb">'; | |
| $switch = array('odd' => 'even', 'even' => 'odd'); | |
| $zebra = 'even'; | |
| $last = count($variables['breadcrumb']) - 1; | |
| foreach ($variables['breadcrumb'] as $key => $item) { | |
| $zebra = $switch[$zebra]; | |
| $attributes['class'] = array('depth-' . ($key + 1), $zebra); |
NewerOlder