src/models/StorageFilterChain.php
public function effectDefinition($effect, $key = null)
    {
        $definition = isset($this->effectDefinitions[$effect]) ? $this->effectDefinitions[$effect] : false;
        
        if (!$definition) {
            return false;
        }
        
        if ($key) {
            return $definition[$key];
        }
        
        return $definition;
    }
public function effectDefinition($effect, $key = null)
    {
        $definition = isset($this->effectDefinitions[$effect]) ? $this->effectDefinitions[$effect] : false;
        
        if (!$definition) {
            return false;
        }
        
        if ($key) {
            return $definition[$key];
        }
        
        return $definition;
    }
public function effectDefinition ( $ effect , $ key = null ) { $ definition = isset ( $ this -> effectDefinitions [ $ effect ] ) ? $ this -> effectDefinitions [ $ effect ] : false ; if ( ! $ definition ) { return false ; } if ( $ key ) { return $ definition [ $ key ] ; } return $ definition ; }
Get the definition for a given effect name.

@param string $effect
@param string $key
@return mixed
@since 1.2.0
Get the definition for a given effect name .