Neos\ContentRepository\Domain\Model\NodeType::hasConfiguration PHP Method

hasConfiguration() public method

Checks if the configuration of this node type contains a setting for the given $configurationPath
public hasConfiguration ( string $configurationPath ) : boolean
$configurationPath string The name of the configuration option to verify
return boolean
    public function hasConfiguration($configurationPath)
    {
        return $this->getConfiguration($configurationPath) !== null;
    }

Usage Example

 /**
  * @test
  */
 public function hasConfigurationReturnsFalseIfSpecifiedConfigurationPathDoesNotExist()
 {
     $nodeType = new NodeType('Neos.ContentRepository:Base', array(), array());
     $this->assertFalse($nodeType->hasConfiguration('some.nonExisting.path'));
 }
All Usage Examples Of Neos\ContentRepository\Domain\Model\NodeType::hasConfiguration