Pimcore\Model\Dependency::isRequired PHP Method

isRequired() public method

Check if the source object is required by an other object (an other object depends on this object)
public isRequired ( ) : void
return void
    public function isRequired()
    {
        if (is_array($this->getRequiredBy()) && count($this->getRequiredBy()) > 0) {
            return true;
        }
        return false;
    }