By editor, 4 December, 2015 Values of return array of a page Tags Drupal 8 Code #type #cache #markup #prefix/#suffix #pre_render #post_render #theme #theme_wrappers Example:
By editor, 3 December, 2015 Use arguments and parameters in url routes Tags Drupal 8 Code Exemple 1 : Form with Node in routing.yml my.node.info: path: '/user/contactmail/{node}' defaults: _form: '\Drupal\myx_meet\Form\ContactUserForm' _title: 'Contact'
By editor, 3 December, 2015 Drupal 8.0.1 Released on 2015-12-02 Drupal 8.0.1 Released on December 2, 2015
By editor, 2 December, 2015 Get field value of a Node / Entity Tags Drupal 8 Code Node Methode 1 : Example: $value = $node->get($field)->value; $target = $node->get($field)->target_id; // For entity ref Methode 2 Example:
By editor, 2 December, 2015 Get node from url Tags Drupal 8 Code Node Example: $node = \Drupal::routeMatch()->getParameter('node'); if ($node) { $nid = $node->id(); }