Resources moved to a git repository in order to make easy fork & contribution
https://github.com/jmolivas/drupal8-links
Feel free to fork & contribute :)
/** | |
* @When /^I click "([^"]*)"$/ | |
*/ | |
public function iClick($selector) | |
{ | |
$element = $this->getSession()->getPage()->findField($selector); | |
$element->click(); | |
} |
alias dbfixture='app/console doctrine:database:drop --force && app/console doctrine:database:create && app/console doctrine:schema:create && app/console doctrine:fixtures:load' |
alias php='/Applications/MAMP/bin/php/php5.4.4/bin/php' | |
alias mysqldump='/Applications/MAMP/Library/bin/mysqldump' | |
alias mysql='/Applications/MAMP/Library/bin/mysql' |
<?php | |
namespace Company\YourBundle\Util; | |
/** | |
* FormUtil | |
* | |
* This class was created to add Form resusable functions | |
* | |
*/ |
* Draco - Vagabundo - http://grooveshark.com/#!/playlist/Robi+Draco+Rosa+Vagabundo/79364927 | |
* Zurdok - Hombre Sintetizador - http://grooveshark.com/#!/album/Hombre+Sintetizador/3691185 | |
* Soda Stereo - Dynamo - http://grooveshark.com/#!/album/Dynamo/365534 | |
* Bunbuy - Radical Sonora - http://grooveshark.com/#!/album/Radical+Sonora/468139 | |
* Azul Violeta - Minimulti - http://grooveshark.com/#!/album/Mini+Multi/364989 |
<?php | |
/** | |
* Implements hook_form_alter(). | |
*/ | |
function readonly_form_alter(&$form, &$form_state, $form_id) { | |
// TODO set form using UI | |
$readonly_field_form_id = 'ENTITY_NAME_node_form'; | |
// TODO set fields using UI | |
$readonly_fields = array('FIELD_NAME_FOO','FIELD_NAME_BAR'); |
<?php | |
/** | |
* Implements hook_field_widget_info() | |
*/ | |
function readonly_field_widget_info(){ | |
return array( | |
'readonly_textfield' => array( | |
'label' => t('Text field (Read Only)'), | |
'field types' => array('text'), |
Feature: Authenticate users | |
In order to access restricted areas of the system | |
As a user | |
I need to be able to sign into the system | |
Scenario: Sign in user | |
And I am on "/signin" | |
When I fill in "E-mail Address" with "[email protected]" | |
And I fill in "Password" with "passw0rd" | |
And I press "Sign in" |
Resources moved to a git repository in order to make easy fork & contribution
https://github.com/jmolivas/drupal8-links
Feel free to fork & contribute :)
# Display git branch | |
function parse_git_branch { | |
[ -d .git ] || return 1 | |
git_status="$(git status 2> /dev/null)" | |
branch_pattern="^# On branch ([^${IFS}]*)" | |
remote_pattern="# Your branch is (.*) of" | |
diverge_pattern="# Your branch and (.*) have diverged" | |
if [[ ! ${git_status}} =~ "working directory clean" ]]; then | |
state="*" | |
fi |