Apple_Exporter\Components\Image::find_caption_alignment PHP 메소드

find_caption_alignment() 개인적인 메소드

Find the caption alignment to use.
private find_caption_alignment ( ) : string
리턴 string
    private function find_caption_alignment()
    {
        $text_alignment = null;
        if (Component::ANCHOR_NONE == $this->get_anchor_position()) {
            return 'center';
        }
        switch ($this->get_anchor_position()) {
            case Component::ANCHOR_LEFT:
                return 'left';
            case Component::ANCHOR_AUTO:
                if ('left' == $this->get_setting('body_orientation')) {
                    return 'right';
                }
        }
        return 'left';
    }