class RequireOnPublish in Require on Publish 8
Checks fields that are required on publish.
Throws an error if a user tries to publish the entity WITHOUT filling in a required field.
Plugin annotation
@Constraint(
id = "require_on_publish",
label = @Translation("Require on Publish", context = "Validation")
)
Hierarchy
- class \Drupal\require_on_publish\Plugin\Validation\Constraint\RequireOnPublish extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of RequireOnPublish
File
- src/
Plugin/ Validation/ Constraint/ RequireOnPublish.php, line 18
Namespace
Drupal\require_on_publish\Plugin\Validation\ConstraintView source
class RequireOnPublish extends Constraint {
public $message = 'Field "%field_label" is required when publishing.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequireOnPublish:: |
public | property |