If you want to remove the commit altogether (and every commit that came after that)
git reset --hard adca297de~ //(assuming the commit's hash is adca297de).
git push origin -f
If you want to remove the commit altogether (and every commit that came after that)
git reset --hard adca297de~ //(assuming the commit's hash is adca297de).
git push origin -f
Create tag
git tag -a v1.9.3 -m "v1.9.3"
Push tag
git push origin tag v1.9.3
Delete remote tag
ssh-copy-id root@IP |
The EntityQuery class can be loaded manually (if you know the entity type):
$query = \Drupal::service('entity_type.manager')->getStorage('node')->getQuery();
public function condition($field, $value = NULL, $operator = NULL, $langcode = NULL);
The $operator
can take one of several options see core/lib/Drupal/Core/Entity/Query/QueryInterface.php::condition
<?php | |
// node, block, block_content, user, view, fiel, taxonomy_term, menu, menu_link_content, migration, ... | |
$storage = 'block'; | |
$service = \Drupal::service('entity_type.manager')->getStorage($storage); | |
// LOAD | |
// One entity | |
$entity = $service->load($id); |
Para acceder al valor de un campo field_date:
$timestamp = $node->field_date->date->getTimestamp();