How to custom field has a value with the Rules module?

by latikas   Last Updated December 21, 2017 14:07 PM

I'm using the "Entity is of type" condition for the After updating content event, the rule only fire when the field has a value of that updated/created node. The field, which is part of a custom content type.

When I select Entity is of type and try to add Entity(Specifies the entity for which to evaluate the condition.) value like [node] and Type(The entity type specified by the condition.) of value like [node:field_alias_1:value]

I got following error,

"TypeError: Argument 1 passed to Drupal\rules\Plugin\Condition\EntityHasField::doEvaluate() must implement interface Drupal\Core\Entity\FieldableEntityInterface, "

Since the scenario is,

If the field has the value of that content type then create a new redirect alias using that field name. How should I do this?

Unable to understand the Rules module in D8. Thanks for your help.

Tags : 8 rules

Answers 1

To my knowledge the current answer to this question is: you can't do that yet with the most recent D8 version of Rules. Refer to #d8rules status update November 2017 to get a better understanding of the current status of Rules for D8. Here is a quote from it:

... Fago can’t dedicate time required to develop the module further. What Rules is really missing at the moment is development capacity to help finish the last milestone.

One never realizes what has been done, only what remains to be done ... So start here if you wonder how to contribute.

December 21, 2017 13:22 PM

Related Questions

Clone nodes and change fields with Rules and VBO

Updated May 20, 2015 20:03 PM