MarkupQA class

Located in file /wire/core/MarkupQA.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the MarkupQA class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
MarkupQA::checkImgTags(string $value)
(nothing)Quality assurance for <img> tags 
MarkupQA::debug()
boolGet or set debug status 
MarkupQA::error(string $text)
$thisRecord error message to image-errors log 
MarkupQA::findLinks()
PageArray array intFind pages linking to another 
MarkupQA::ignorePaths()
arrayGet or set paths to ignore for link abstraction 
MarkupQA::setField(Field $field)
(nothing)Set the current Field 
MarkupQA::setPage(Page $page)
(nothing)Set the current Page 
MarkupQA::sleepLinks(string $value)
(nothing)Sleep href attributes, adding a data-pwid attribute to <a> tags that resolve to a Page 
MarkupQA::sleepUrls($value)
(nothing)Sleep URLs in href or src attributes for storage 
MarkupQA::verbose()
boolGet or set verbose state 
MarkupQA::wakeupLinks($value)
arrayWakeup href attributes, using the data-pwid attribute to update the href attribute as necessary 
MarkupQA::wakeupUrls($value)
(nothing)Wakeup URLs in href or src attributes for presentation 

Additional methods and properties

In addition to the methods and properties above, MarkupQA also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #558
    In the 558th issue of ProcessWire Weekly we'll check out the blog post that introduces ProcessWire 3.0.244, share some recent ProcessWire highlights, and more. Read on!
    Weekly.pw / 18 January 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We chose ProcessWire because of its excellent architecture, modular extensibility and the internal API. The CMS offers the necessary flexibility and performance for such a complex website like superbude.de. ProcessWire offers options that are only available for larger systems, such as Drupal, and allows a much slimmer development process.” —xport communication GmbH