Test code:

  /**
   * {@inheritdoc}
   */
  public function getConstraints() {
    $constraint_manager = \Drupal::typedDataManager()
      ->getValidationConstraintManager();
    $constraints = parent::getConstraints();

    // Validate each actor and scene atom
    // against regular expressions and Xss::filter.
    $options = array(
      'value' => array(
        'Callback' => array(
          'callback' => function ($value, ExecutionContextInterface $context) {
          TheaterItem::theaterValidate($value, $context);
          },
        ),
        ),
    );

Comments

klausi created an issue. See original summary.

  • klausi committed d8075b3 on
    Issue #2649442: Fixed indentation false positives with anonymous...
klausi’s picture

Status: Active » Fixed

Committed a fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.