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); |
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 | |
| 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
| //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
| 13:43 /opt/development/esummerfield/lds/html/sites/all/modules/lsd_csi/sps (7.x-1.x) $ php /opt/development/esummerfield/lds/html/scripts/run-tests.s | |
| h --color --verbose --class SPSPluginFactoryUnitTest | |
| Drupal test run | |
| --------------- | |
| Tests to be run: | |
| - SPS Plugin Factory Unit Tests (SPSPluginFactoryUnitTest) | |
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
| /** | |
| * Recursive function to search the meta data | |
| * | |
| * @param $plugin_info | |
| * @param $property | |
| * this can be a string or a array of tree keys | |
| * @param $value | |
| * | |
| * @return bool | |
| */ |
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 | |
| /** | |
| * Validate that the plugin info array contains the all of the required keys | |
| * | |
| * @param $plugin_info | |
| * @param $element_key | |
| * @param $element | |
| * | |
| * @throws Exception\InvalidPluginException | |
| * |
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
| .---------------------------------------------------. | |
| |.-------------------------------------------------.| | |
| || [Select Condition] Date [__________] [submit] || | |
| |'-------------------------------------------------'| | |
| | | | |
| |.-----------------------------. .-----------------.| | |
| ||.---------------------------.| |.---------------.|| | |
| ||| [Publish] || || [Publish] ||| | |
| ||'---------------------------'| |'---------------'|| | |
| || | | || |
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 | |
| /** | |
| * This is to assit in calling function outside of the sps | |
| * module that might have side effect. It allows for test to | |
| * change the function for there tests | |
| * the syntax to use is |
OlderNewer