You are here

public function OpignoTrueFalseFieldType::getConstraints in Opigno module 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldType/OpignoTrueFalseFieldType.php \Drupal\opigno_module\Plugin\Field\FieldType\OpignoTrueFalseFieldType::getConstraints()

Gets a list of validation constraints.

Return value

array Array of constraints, each being an instance of \Symfony\Component\Validator\Constraint.

Overrides TypedData::getConstraints

File

src/Plugin/Field/FieldType/OpignoTrueFalseFieldType.php, line 55

Class

OpignoTrueFalseFieldType
Plugin implementation of the 'opigno_true_false_field' field type.

Namespace

Drupal\opigno_module\Plugin\Field\FieldType

Code

public function getConstraints() {
  $constraints = parent::getConstraints();
  return $constraints;
}