Pantheon\Terminus\Models\Site::getFeature PHP Method

getFeature() public method

Returns a specific site feature value
public getFeature ( string $feature ) : mixed | null
$feature string Feature to check
return mixed | null Feature value, or null if not found
    public function getFeature($feature)
    {
        if (!isset($this->features)) {
            $response = $this->request()->request("sites/{$this->id}/features");
            $this->features = (array) $response['data'];
        }
        if (isset($this->features[$feature])) {
            return $this->features[$feature];
        }
        return null;
    }