You are here

public function TwitterEmbedItem::getConstraints in Twitter Embed 8

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/TwitterEmbedItem.php, line 69

Class

TwitterEmbedItem
Plugin implementation of the 'twitter_embed_field' field type.

Namespace

Drupal\twitter_embed\Plugin\Field\FieldType

Code

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

  // @todo to review
  return $constraints;
}