Working on a Drupal module using composer

Submitted by clemens on Sat, 2019年05月18日 - 11:10am

Altering Drupals composer.json to fetch a particular Drupal module git checkout.

Check your coding style on Drupal 8

Submitted by clemens on Thu, 2017年06月29日 - 12:24pm

Coding style?

Building software is a complex and sometimes tedious process in which you make errors and mistakes. Testing for errors is mostly done by running your website / code through tests either manually or automatically.

Checking for your code style like formatting and documentation flaws you can use a code sniffer. For PHP you can run phpcs using PHP_CodeSniffer.

Drupal core provides core/phpcs.xml.dist to tell phpcs what to test for.

Delete and edit comments on closed node

Submitted by clemens on Tue, 2015年02月17日 - 4:29pm

Having a forum you needs quick deletions of improper comments.

In Drupal 7 and Drupal 8 you have to visit admin/content/comments to do so. But then you loose the thread.

You could review and use this patch or add this to your custom module. The first needs review and testing. The later needs a Drupal coder.

Which route belongs to which path fragment?

Submitted by clemens on Tue, 2014年10月28日 - 1:21pm

Visualization some complex part of Drupal is helping understand Drupal better. This is about the menu tree using Graph Viz for a static SVG diagram and D3JS for a dynamic version.

The state of ReST in Headless Drupal 8

Submitted by martijn on Thu, 2014年10月09日 - 10:37am

One of the Drupal 8 initiatives was to make "headless" Drupal core work out of the box. Drupal now has a ReST API.

This allows you to use all the Drupal 8 features to edit your content but present the content not only on a Drupal frontend but also on mobile apps or anything else that can work with JSON data.

Extending a Widget for numeric fields.

Submitted by clemens on Fri, 2014年09月05日 - 3:36pm
Looking for a HTML range field in Drupal 8 core I did not found one. First I tried to alter Number Widget but that was wrong. Just extend a suitable widget. The code is very short. But the display is not as good as one needs. Where is the min and max value? And the current value? The specs @ w3c html5 forms input range has some user agent rendering which does not give min, max or current value hints.

number field.

It's alive in space

Submitted by clemens on Fri, 2014年07月25日 - 6:03pm

Interested in ReST and HAL?

Submitted by clemens on Wed, 2014年07月23日 - 4:42pm
  1. Checkout the issue queue for HAL and ReST.
  2. Use the quickstart tool: https://github.com/build2be/drupal-rest-test.

Need HAL?

  1. Install HAL Browser on your site to see what we got till now.
  2. cd drupal-root

yUML as a service

Submitted by clemens on Tue, 2014年02月18日 - 5:37pm

With the online service http://yuml.me one can draw some UML Diagrams. Wouldn't it be great to build that into Drupal? Checkout the new yUML module.

At your Service Container

Submitted by clemens on Mon, 2014年02月10日 - 1:10pm

As we all know Drupal 8 has lots of new stuff. One of these items is based on Dependency Injection and result in a new file stored at sites/defaults/files/php/service_container/service_container_prod.php/e7000f005xxx.php and created very early during the bootstrap of Drupal. But what is it's contents?

AltStyle によって変換されたページ (->オリジナル) /