src/Extensions/DisplayLogic.php
public function displayIf($master)
    {
        $class ="display-logic display-logic-hidden display-logic-display";
        $this->owner->addExtraClass($class);

        if ($this->owner->hasMethod('addHolderClass')) {
            $this->owner->addHolderClass($class);
        }

        return $this->setDisplayLogicCriteria(Criteria::create($this->owner, $master));
    }
public function displayIf($master)
    {
        $class ="display-logic display-logic-hidden display-logic-display";
        $this->owner->addExtraClass($class);

        if ($this->owner->hasMethod('addHolderClass')) {
            $this->owner->addHolderClass($class);
        }

        return $this->setDisplayLogicCriteria(Criteria::create($this->owner, $master));
    }
public function displayIf ( $ master ) { $ class = "display-logic display-logic-hidden display-logic-display" ; $ this -> owner -> addExtraClass ( $ class ) ; if ( $ this -> owner -> hasMethod ( 'addHolderClass' ) ) { $ this -> owner -> addHolderClass ( $ class ) ; } return $ this -> setDisplayLogicCriteria ( Criteria :: create ( $ this -> owner , $ master ) ) ; }
If the criteria evaluate true, the field should display
@param  string $master The name of the master field
@return Criteria
If the criteria evaluate true the field should display