/** * Gets the column class associated to the thumbnail. * * @param array $options thumbnail's options. * @return string thumbnail's column class. */ private function get_column_class(&$options) { $column_class = Base::get_and_unset('column_class', $options); return $column_class; }
/** * Tells if badge options has been detected to generate a Badge component. * * @param mixed $options options. * @return Badge a instance of Badge component. */ private function check_for_badge(&$options) { $badge = Base::get_and_unset('badge', $options); return !is_null($badge) ? new Badge($badge) : null; }
/** * Returns the image responsive class. * * @param array $options image's options. * @return mixed responsive class or null. */ private function get_responsive_class(&$options) { $responsive = Base::get_and_unset('responsive', $options); return $responsive ? 'img-responsive' : null; }