src/Controllers/CommentingController.php
public function getOptions()
    {
        if ($record = $this->getOwnerRecord()) {
            /** @var DataObject|CommentsExtension $record */
            return $record->getCommentsOptions();
        }

        // Otherwise a singleton of that record
        if ($class = $this->getParentClass()) {
            return singleton($class)->getCommentsOptions();
        }

        // Otherwise just use the default options
        return singleton(CommentsExtension::class)->getCommentsOptions();
    }
public function getOptions()
    {
        if ($record = $this->getOwnerRecord()) {
            /** @var DataObject|CommentsExtension $record */
            return $record->getCommentsOptions();
        }

        // Otherwise a singleton of that record
        if ($class = $this->getParentClass()) {
            return singleton($class)->getCommentsOptions();
        }

        // Otherwise just use the default options
        return singleton(CommentsExtension::class)->getCommentsOptions();
    }
public function getOptions ( ) { if ( $ record = $ this -> getOwnerRecord ( ) ) { /** @var DataObject|CommentsExtension $record */ return $ record -> getCommentsOptions ( ) ; } // Otherwise a singleton of that record if ( $ class = $ this -> getParentClass ( ) ) { return singleton ( $ class ) -> getCommentsOptions ( ) ; } // Otherwise just use the default options return singleton ( CommentsExtension :: class ) -> getCommentsOptions ( ) ; }
Returns all the commenting options for the current instance.

@return array
Returns all the commenting options for the current instance .