$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
<?php | |
$form_state->getBuildInfo()['base_form_id']; |
<?php | |
class SimpleForm extends FormBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getFormId() { | |
return 'simple_form'; | |
} |
<?php | |
class AjaxForm extends FormBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getFormId() { | |
return 'ajax_form'; | |
} |
Drupal 8: | |
---------- | |
- Content type = Bundle | |
- Node = Entity | |
- Base fields are in one table: [entity]_field_data | |
- Bundle fields are in seperate tables: [entity]__field_name |
// vider les caches spécifiques | |
$ drush cc drush | |
$ drush cc theme-registry | |
$ drush cc router | |
$ drush cc css-js | |
$ drush cc module-list | |
$ drush cc theme-list | |
$ drush cc render | |
$ drush cc token | |
$ drush cc views |
;lsof -nP -i4TCP:9000 | grep LISTEN | |
;xdebug.remote_log=/fullpath/xdebug.log | |
opcache.enable=1 | |
xdebug.coverage_enable=off | |
xdebug.extended_info=off | |
xdebug.remote_enable=1 | |
xdebug.remote_port=9000 | |
xdebug.remote_host=127.0.0.1 |
version: "2.1" | |
services: | |
tuleap: | |
image: enalean/tuleap-aio | |
restart: unless-stopped | |
environment: | |
VIRTUAL_HOST: "${VIRTUAL_HOST:-localhost}" | |
DB_HOST: "db" | |
MYSQL_ROOT_PASSWORD: "tuleap" |
version: '2' | |
services: | |
mariadb: | |
image: 'bitnami/mariadb:latest' | |
environment: | |
- ALLOW_EMPTY_PASSWORD=yes | |
volumes: | |
- 'mariadb_data:/bitnami' | |
phabricator: | |
image: 'bitnami/phabricator:latest' |
web: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: always | |
hostname: 'gitlab.example.com' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.example.com' | |
# Add any other gitlab.rb configuration here, each on its own line | |
ports: | |
- '80:80' |