How to get Moderation State label?

Hi,

I am trying to get Moderation State label on hook_node_update() hook. I am able to get moderation state machine name using following code.

$node->get('moderation_state')->getString(); // this return "saved"

Machine name is saved and label is Submit for Review.

Is it possible to get label here?

Thanks

Kaleem

How to use the "PayPal Commerce" module ?

I installed the module "Commerce PayPal" on my site and created a PayPal business account.

I have configured a payment gateway, but I have this error message :

<blockquote>PayPal has indicated that the current site is not eligible to show the credit card form. Please review your configuration and try again.</blockquote>

I want to accept payments on my site without going through the PayPal site.

How to correct this error ?

What is the "PayPal Client ID" field used for in the "/admin/commerce/config/payment/paypal-credit" configuration? 

How to enter and use time in a content type

I've got a Radio Station website I'm working on. I'm creating a content type for On-Air staff, the issue that brings me here, seeking opinions is, I want to include in this profile the time(s) this individual is on the air. Recognizing that this could be as simple as "Monday - Friday, 6:00am - 10:00am", or as complex as something like "Monday thru Thursday 7-9am and 3:30-5:30pm, and Saturday 9am-11am" or... however a program director may decide to schedule things. This being the case, I'm not sure how to best set this up in this content type.

How to remove unused css code from css file

Hello,

I migrated a d8 site from a d8 site. After that, I updated the target site. I realized that lot of css codes are not being used. It takes so much time to remove unused css manually. Is there a tool or faster way I can remove the unused css codes?

Thanks!

WHO EQUIP - digital mental health support assessment

The World Health Organization needed a way to deliver mental health training and assessments online in areas with intermittent connectivity. We were brought in to turn the EQUIP methodology into a web platform delivered to 1,500 active weekly users.

Sectors: 
Education
Healthcare
Non-profit

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x