Drupal 8 Node Operations
Submitted by system on Tue, 02/14/2017 - 13:11Check if field exists in a node
<?php
$entity->hasField('abc');
?>
Get value of a field:
Check if field exists in a node
<?php
$entity->hasField('abc');
?>
Get value of a field:
Checking Passphrase for private key: openssl rsa -check -in keyfilename
Changing Passphrase: openssl rsa -des3 -in keyfilename -out newkeyfilename
Installing or trusting certificates:
Extensions .crt, .pem and .cer are interchangeable, just change the file name extension, they have the same form. Try this:
sudo cp mycert.cer /usr/share/ca-certificates/mycert.pem
sudo dpkg-reconfigure ca-certificates
sudo update-ca-certificates
Getting the RSA public and private key from conf file.
Views Bulk Operations come handy when doing bulk operations over a selected list. This is great because it combines the power of views to filter the selection and specific actions to do on each selected entity. For Ex: Updating some field in the record, deleting selected entity and so on.
Views also provide an easier way to define your own set of custom functions to perform on each selected row of entities.
First, we need to define an action :
Templates are the default option for hook_theme: https://www.drupal.org/node/2231673
Advanced Theme Settings Change Record: https://www.drupal.org/node/2382645
Drupal 8 theming guide: https://www.drupal.org/theme-guide/8
This post would reflect on few essential APIs in Drupal 7 and how they were changed in Drupal 8:
drupal_get_title()
: Gets the title of the current page. Link to changelog here .
Drupal 7:
Drupal 8 has done a great overhaul in terms of entity management. Lets have a look on how can be access and set data for fields in entities.
All entities implement Drupal\Core\Entity\EntityInterface
Access Entity Title:
OPcache is an opcode cache for PHP. It is bundled with PHP 5.5.0 and later.
The following settings work really well with Drupal. For Ubunti 14.04 , these following file can be modified to incorporate the changes
/etc/php5/apache2/php.ini
Configuration:
Drupal provides nice theming options for table display. However, various options available using tabular display are not documented well. This article will try to list various options to use when creating tables using drupal theme functions.
Creating a table display:
This problem particularly occurs when the views is upgraded to 3.x in Drupal 6. The nodereference field which gets list data from a view returns only 10 results irrespective of whatever is set on the views page.
There is an easy solution to alter by modifying the items_set_per_page using views hooks.