@see http://www.eilyin.name/note/database-queries-drupal-8-7
-
Get single value:
$query = \Drupal::database()->select('node_field_data', 'nfd'); $query->addField('nfd', 'nid');
$query->condition('nfd.title', 'Potato');
<?php | |
namespace Drupal\registrations_processor\Plugin\WebformHandler; | |
use Drupal; | |
use Drupal\commerce\PurchasableEntityInterface; | |
use Drupal\commerce_order\Adjustment; | |
use Drupal\commerce_order\Entity\OrderInterface; | |
use Drupal\commerce_price\Price; | |
use Drupal\Core\Form\FormStateInterface; |
@see http://www.eilyin.name/note/database-queries-drupal-8-7
Get single value:
$query = \Drupal::database()->select('node_field_data', 'nfd');
$query->addField('nfd', 'nid');
$query->condition('nfd.title', 'Potato');
As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
Steps to install and configure Redis for any Drupal site on BOA:
How it works?
{% for book_id, menu in book_menus %} | |
<nav id="book-block-menu-{{ book_id }}" class="book-block-menu"> | |
{{ menu }} | |
</nav> | |
{% endfor %} |