src/Extensions/CommentsExtension.php
public function getCommentsOption($key)
    {
        $settings = $this->getCommentsOptions();
        $value = null;

        if (isset($settings[$key])) {
            $value = $settings[$key];
        }

        // To allow other extensions to customise this option
        if ($this->owner) {
            $this->owner->extend('updateCommentsOption', $key, $value);
        }

        return $value;
    }
public function getCommentsOption($key)
    {
        $settings = $this->getCommentsOptions();
        $value = null;

        if (isset($settings[$key])) {
            $value = $settings[$key];
        }

        // To allow other extensions to customise this option
        if ($this->owner) {
            $this->owner->extend('updateCommentsOption', $key, $value);
        }

        return $value;
    }
public function getCommentsOption ( $ key ) { $ settings = $ this -> getCommentsOptions ( ) ; $ value = null ; if ( isset ( $ settings [ $ key ] ) ) { $ value = $ settings [ $ key ] ; } // To allow other extensions to customise this option if ( $ this -> owner ) { $ this -> owner -> extend ( 'updateCommentsOption' , $ key , $ value ) ; } return $ value ; }
Get the commenting option for this object.

This can be overridden in any instance or extension to customise the
option available.

@param string $key

@return mixed Result if the setting is available, or null otherwise
Get the commenting option for this object .