recentpopularlog in

dirtystylus : drupal8   67

How to loop through referenced entities? | Goran Nikolovski
Both Entity reference and Entity reference revisions fields have referencedEntities() method
drupal  drupal8  entityreference  webdev  via:chrisarasin 
7 weeks ago by dirtystylus
Form API #states | Lullabot
Conditional fields in Drupal 8.

Form States — how to show/hide if you’re dealing with a Boolean value as the trigger.
drupal8  ax  drupal 
december 2018 by dirtystylus
8 - How to get $_POST and $_GET parameters - Drupal Answers
passing parameters to a REST API, retrieving them

$query = \Drupal::request()->query->get('name');
drupal  drupal8  REST  api  decoupledcms 
november 2018 by dirtystylus
REST API Best practices: Where to put parameters? - Stack Overflow
Filters always go in the query string, because while they are a part of finding the right data, they are only there to return a subset or modification of what the Locators return alone. The search in (subset) is a filter, and so is /article/5?order=backwards (modification). Think about what it does, not just what it's called!
bestpractices  REST  api  drupal  drupal8  decoupledcms 
november 2018 by dirtystylus
LDAP Authentication: (unknown error: 6) [#1880310] |
Experienced the same "Authentication result id=0 auth_result=6 (unknown error: 6)" error while reconfiguring after a D6 to D7 upgrade. The server was able to connect and the user was authenticated, but I was redirected to an error page. The error logs reported "PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'USERNAME' for key 'authname'". I don't know the technicalities, but there was an authorization conflict in the "authmap" table. Once I dropped all the users (DELETE FROM authmap WHERE module = 'ldapauth'), I was able to re-map and successfully log in using LDAP/AD credentials.
drupal  drupal7  drupal8  security  authentication  ldap 
january 2018 by dirtystylus
field_view_field() and field_view_value() moved to view() methods on FieldItemListInterface and FieldItemInterface |
Just like in Drupal 7, those one-off methods have a non-negligible overhead, and it is strongly recommended for performance to favor entity_view() / entity_view_multiple() when displaying entities as a whole.
drupal  views  webperf  performance  drupal8  drupal7 
may 2017 by dirtystylus
File Entity Browser |
Alternative entity (file) browser for Drupal 8. Drag-and-drop upload.
drupal  drupal8  entities  media  module:file_browser  via:putrabon 
september 2016 by dirtystylus
Drupal 8 multilingual demo |
There's an awesome "ready to go" demo of 8's multilingual features: /via
multilingual  drupal  drupal8 
february 2015 by dirtystylus

Copy this bookmark:

to read