Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Field

By editor , 13 September, 2017

Render a Node or an Entity

Tags

  • Drupal 8
  • Code
  • Views
  • Node
  • Field
  • Drupal 9

On drupal 8 every elements (almost) are an entity, as any entity you can render a node.

By editor , 31 January, 2017

Change the states of an element based on another element (field)

Tags

  • Drupal 8
  • Code
  • Field

Note : The tutorial is usins States VISIBLE, but can also use for other html parameters such as : REQUIRED, EXPENDED, CHECKED ...

The selector is an "JQUERY_SELECTOR"

By editor , 13 January, 2017

Create a field in a node entity programmatically on Drupal 8.

Tags

  • Drupal 8
  • Code
  • Field

Example.
Step 1 : Create field storage.
\Drupal\field\Entity\FieldStorageConfig::create(array(
  'field_name' => 'field_text',
  'entity_type' => 'node',
  'type' => 'text',
  'cardinality' => -1,

Field

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer