To do this when you have entity that is bundable and choose specific bundle of that entity like when you have taxonomy vocabularies, do this instead$fields['properties_reference'] = BaseFieldDefinition::create('entity_reference') ->setLabel(t('Properties')) ->setSetting('target_type', '...
_entity_access _csrf_token Dynamic routes Menu links Local tasks Local actions Contextual links Events and hooks Using the EventDispatcher Summary Working with Forms and the Form API Creating and managing forms Creating a new form Using FormState Other form types Exploring the Form API New Form ...
As part of the change to path aliases, path alias administration forms have been converted to generic entity forms. This means form IDs and form class names have changed, so custom code needs to be updated for any hook_form_alter() or hook_form_FORM_ID_alter() implementations that were u...
In other words: the text shouldonlycontain text and programmatic references to other content; the filter system should then handle “upcasting” these into their final form. This will make it much, much easier to upgrade existing content to newimage styles, to modify referenced media, to migrate...
This is a patch (bugfix) release of Drupal 9 and is ready for use on production sites. Learn more about Drupal 9. Drupal 9.1.x will receive security coverage until December 8, 2021 when Drupal 9.3.0 is released. If you are upgrading from Drupal 8, read upgrading a Drupal 8 site to...
Using display modes properly can provide benefits throughout your entire development stack. Here's how to use them with some guidelines and recommendations.
Now that we have a better understanding of content types and their respective fields, it's time to take a closer look by creating our first custom content type.目录 上一章 下一章首页 书籍详情 目录 听书 自动阅读00:04:58 摸鱼模式 加入书架 字号 背景 手机阅读 举报...
Drupal allows us to easily manage roles, and depending on how those roles are set up, we may want to change which role is considered the Administrator. For example, when we use the Standard install profile, Drupal creates an Administrator role and assigns that role accordingly. If, for some...
ConfigEntityUpdater now enforces that it is only used for one update function at a time via an exception, whereas this behaviour was previously silently broken. Read the change record on ConfigEntityUpdater for more information. This is the first release of Drupal 8 core to use a new packagin...
The "add" forms provided by the Media Library module now have two different form IDs. Previously, both shared the same form ID (media_library_add_form). This is now their shared base form ID. Their individual form IDs are now media_library_add_form_upload and media_library_add_form_oemb...