ToConfig.php

Same filename in other branches
  1. 10 core/lib/Drupal/Core/Form/ToConfig.php

Namespace

Drupal\Core\Form

File

core/lib/Drupal/Core/Form/ToConfig.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Core\Form;


/**
 * Enumeration of the special return values for ConfigTarget toConfig callables.
 *
 * @see \Drupal\Core\Form\ConfigTarget
 */
enum ToConfig
{
    // Appropriate to return from a toConfig callable when another toConfig
    // callable handles setting this property path. In other words: "no-op".
    case NoOp;
    // Appropriate to return from a toConfig callable when the given form value
    // should result in the targeted property path getting deleted.
    // @see \Drupal\Core\Config\Config::clear()
    case DeleteKey;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.