WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::has() public WC 1.0

{@inheritdoc}

{} It's a method of the class: DefinitionAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$DefinitionAggregate = new DefinitionAggregate();
$DefinitionAggregate->has( $id ) : bool;
$id(string) (required)
-

Code of DefinitionAggregate::has() WC 5.8.0

public function has(string $id) : bool
{
    foreach ($this->getIterator() as $definition) {
        if ($id === $definition->getAlias()) {
            return true;
        }
    }

    return false;
}